Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(photos):keep-search-cache-enabled-while-open

Aswin Asok632971d7f60d
diff --git a/web/apps/photos/src/components/SearchBar.tsx b/web/apps/photos/src/components/SearchBar.tsx
index 38afe662fd..44246bfa09 100644
--- a/web/apps/photos/src/components/SearchBar.tsx
+++ b/web/apps/photos/src/components/SearchBar.tsx
@@ -355,7 +355,7 @@ const SearchInput: React.FC<
styles={styles}
loadOptions={loadOptions}
// Moving focus to a tab must not reload the current query.
- cacheOptions={open ? inputValue : undefined}
+ cacheOptions={open}
filterOption={({ data }) =>
matchesSearchCategory(data, category)
}