Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] Stabilize album map callback

AswinAsok62eb84b3e712
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 90897cc564..20c00a1ab8 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -346,6 +346,11 @@ const Page: React.FC = () => {
[mapEnabled, onGenericError, showCollectionMap],
);
+ const handleShowAlbumMap = useCallback(
+ () => handleShowCollectionMap(),
+ [handleShowCollectionMap],
+ );
+
const [albumAddedNotification, setAlbumAddedNotification] = useState<{
open: boolean;
albumName?: string;
@@ -2339,7 +2344,7 @@ const Page: React.FC = () => {
setActiveCollectionID={selectGalleryCollection}
onSelectPerson={handleSelectPerson}
onEditAlbumDetails={showEditAlbumDetails}
- onShowMap={() => handleShowCollectionMap()}
+ onShowMap={handleShowAlbumMap}
onCollectionSlideshow={startSlideshow}
emailByUserID={state.emailByUserID}
shareSuggestionEmails={