Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web] Fix shared albums

Manav Rathi8fab6b5e48cc
diff --git a/web/apps/photos/src/components/PhotoList/index.tsx b/web/apps/photos/src/components/PhotoList/index.tsx
index c63297396e..3eee1d6830 100644
--- a/web/apps/photos/src/components/PhotoList/index.tsx
+++ b/web/apps/photos/src/components/PhotoList/index.tsx
@@ -718,6 +718,9 @@ export function PhotoList({
};
useEffect(() => {
+ // Nothing to do here if nothing is selected.
+ if (!galleryContext.selectedFile) return;
+
const notSelectedFiles = displayFiles?.filter(
(item) => !galleryContext.selectedFile[item.id],
);