Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] Toggle the displayed album search category

Aswin Asok99e6b711ebf9
diff --git a/web/apps/photos/src/components/gallery/BarImpl.tsx b/web/apps/photos/src/components/gallery/BarImpl.tsx
index 3c64353531..5c586c8354 100644
--- a/web/apps/photos/src/components/gallery/BarImpl.tsx
+++ b/web/apps/photos/src/components/gallery/BarImpl.tsx
@@ -437,8 +437,8 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({
: undefined
}
onClick={() =>
- setAlbumFilter((current) =>
- current == filter.value
+ setAlbumFilter(
+ activeAlbumFilter == filter.value
? undefined
: filter.value,
)