Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix bug in description search section result

ashilkna33eff40a84a
diff --git a/lib/services/search_service.dart b/lib/services/search_service.dart
index b1f063b0fa..512d37bdb8 100644
--- a/lib/services/search_service.dart
+++ b/lib/services/search_service.dart
@@ -370,7 +370,7 @@ class SearchService {
//result will be ["hello", "world", "hello world"] for the string
//"hello world"
- if (limit != null && distinctFullDescriptionCount < limit) {
+ if (limit == null || distinctFullDescriptionCount < limit) {
distinctFullDescriptionCount++;
final words = file.caption!.split(" ");
orderedSubDescriptions.add({0: <String>[], 1: <String>[]});