Skip to content

armgit / ente

Public Imported from GitHub
0

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

[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.tsx
index 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();