High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): Reset "People" search filter chip if no selections are made (#26267)
Benjamin Nguyena1839b367648
diff --git a/mobile/lib/presentation/pages/search/drift_search.page.dart b/mobile/lib/presentation/pages/search/drift_search.page.dartindex 45a14643c9..0d9bba146a 100644--- a/mobile/lib/presentation/pages/search/drift_search.page.dart+++ b/mobile/lib/presentation/pages/search/drift_search.page.dart@@ -150,10 +150,12 @@ class DriftSearchPage extends HookConsumerWidget {handleOnSelect(Set<PersonDto> value) {filter.value = filter.value.copyWith(people: value);- peopleCurrentFilterWidget.value = Text(- value.map((e) => e.name != '' ? e.name : 'no_name'.t(context: context)).join(', '),- style: context.textTheme.labelLarge,- );+ final label = value.map((e) => e.name != '' ? e.name : 'no_name'.t(context: context)).join(', ');+ if (label.isNotEmpty) {+ peopleCurrentFilterWidget.value = Text(label, style: context.textTheme.labelLarge);+ } else {+ peopleCurrentFilterWidget.value = null;+ }}handleClear() {