π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[photos][web] Reset unavailable album groups outside the overview
AswinAsok651e9ba6905b
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex 5191df7bbe..5f5ec23be3 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -585,15 +585,15 @@ const Page: React.FC = () => {}, [barMode, activeCollectionID]);useEffect(() => {- if (!overviewFilter) return;const available = visibleAlbumFilters([...normalCollectionSummaries.values(),]);- if (!available.some(({ value }) => value == overviewFilter)) {+ if (!available.some(({ value }) => value == albumFilter)) {setAlbumFilter("ente");- dispatch({ type: "showAlbumOverview", albumFilter: "ente" });+ if (overviewFilter)+ dispatch({ type: "showAlbumOverview", albumFilter: "ente" });}- }, [normalCollectionSummaries, overviewFilter]);+ }, [normalCollectionSummaries, albumFilter, overviewFilter]);const router = useRouter();