Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(photos):exit-cleanup-when-switching-rail-modes

Aswin Asokd1e29a0ee57a
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 5dab326984..1d73d3eed5 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -1478,10 +1478,10 @@ const Page: React.FC = () => {
[showCollectionSummary],
);
- const handleChangeBarMode = (mode: GalleryBarMode) =>
- mode == "people"
- ? dispatch({ type: "showPeople" })
- : dispatch({ type: "showAlbums" });
+ const handleChangeBarMode = (mode: GalleryBarMode) => {
+ setCleanupView(undefined);
+ dispatch({ type: mode == "people" ? "showPeople" : "showAlbums" });
+ };
const handleFileViewerToggleFavorite = useCallback(
async (file: EnteFile) => {