diff --git a/android/app/src/main/jniLibs/arm64-v8a/libtc_helper.so b/android/app/src/main/jniLibs/arm64-v8a/libtc_helper.so index b0fe44b3..2ed5d305 100755 Binary files a/android/app/src/main/jniLibs/arm64-v8a/libtc_helper.so and b/android/app/src/main/jniLibs/arm64-v8a/libtc_helper.so differ diff --git a/android/app/src/main/jniLibs/armeabi-v7a/libtc_helper.so b/android/app/src/main/jniLibs/armeabi-v7a/libtc_helper.so index 47fd5b25..4fa2b74e 100755 Binary files a/android/app/src/main/jniLibs/armeabi-v7a/libtc_helper.so and b/android/app/src/main/jniLibs/armeabi-v7a/libtc_helper.so differ diff --git a/ios/tc_helper.xcframework/ios-arm64/tc_helper.framework/tc_helper b/ios/tc_helper.xcframework/ios-arm64/tc_helper.framework/tc_helper index f639754f..458cab50 100755 Binary files a/ios/tc_helper.xcframework/ios-arm64/tc_helper.framework/tc_helper and b/ios/tc_helper.xcframework/ios-arm64/tc_helper.framework/tc_helper differ diff --git a/ios/tc_helper.xcframework/ios-arm64_x86_64-simulator/tc_helper.framework/tc_helper b/ios/tc_helper.xcframework/ios-arm64_x86_64-simulator/tc_helper.framework/tc_helper index bdf11cda..cec5b500 100755 Binary files a/ios/tc_helper.xcframework/ios-arm64_x86_64-simulator/tc_helper.framework/tc_helper and b/ios/tc_helper.xcframework/ios-arm64_x86_64-simulator/tc_helper.framework/tc_helper differ diff --git a/lib/app/modules/taskc_details/views/taskc_details_view.dart b/lib/app/modules/taskc_details/views/taskc_details_view.dart index c974dcac..2203274f 100644 --- a/lib/app/modules/taskc_details/views/taskc_details_view.dart +++ b/lib/app/modules/taskc_details/views/taskc_details_view.dart @@ -206,7 +206,9 @@ class TaskcDetailsView extends GetView { builder: (context) => TagEditor( suggestions: suggestions.toList(), // You can pass tag suggestions here - initialTags: value.split(',').map((e) => e.trim()).toList(), + initialTags: value.isNotEmpty + ? value.split(',').map((e) => e.trim()).toList() + : [], onSave: (List newTags) { onChanged(newTags.join(', ')); }, diff --git a/lib/app/v3/champion/models/task_for_replica.dart b/lib/app/v3/champion/models/task_for_replica.dart index daf22ca3..c1e966c8 100644 --- a/lib/app/v3/champion/models/task_for_replica.dart +++ b/lib/app/v3/champion/models/task_for_replica.dart @@ -56,7 +56,7 @@ class TaskForReplica { description: json['description']?.toString(), tags: (json['tags'] is List) ? (json['tags'] as List).map((e) => e.toString()).toList() - : (json['tags'] is String) + : (json['tags'] is String && json['tags'].toString().isNotEmpty) ? json['tags'].toString().split(' ') : null, uuid: json['uuid']?.toString() ?? '', diff --git a/rust/src/api.rs b/rust/src/api.rs index 6129cc0f..5ee13205 100644 --- a/rust/src/api.rs +++ b/rust/src/api.rs @@ -37,7 +37,7 @@ fn get_all_tasks(taskdb_dir_path: String) -> Vec> { for (_, value) in replica.all_tasks().unwrap() { let mut map: HashMap = HashMap::new(); - let mut tags = String::new(); + let mut tags = "".to_string(); for (k, v) in value.get_taskmap() { if k.contains("tag_") { @@ -49,7 +49,7 @@ fn get_all_tasks(taskdb_dir_path: String) -> Vec> { map.insert(k.into(), v.into()); } } - map.insert("tags".into(), tags); + map.insert("tags".into(), tags.trim().into()); map.insert("uuid".into(), value.get_uuid().to_string()); vector.push(map); }