Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(searchBar):fixed-noisy-suggestions

Aswin Asok9300366bd08c
diff --git a/web/packages/new/photos/services/search/sidebar-search-registry.ts b/web/packages/new/photos/services/search/sidebar-search-registry.ts
index c82a879ab9..6f53799ede 100644
--- a/web/packages/new/photos/services/search/sidebar-search-registry.ts
+++ b/web/packages/new/photos/services/search/sidebar-search-registry.ts
@@ -207,7 +207,7 @@ export const sidebarSearchOptionsForString = (
searchString: string,
): SearchOption[] => {
const normalized = searchString.trim().toLowerCase();
- if (!normalized) return [];
+ if (normalized.length < 2) return []; // avoid noisy single-letter matches
return sidebarActions
.filter(({ available }) => !available || available())