diff --git a/web/apps/photos/src/components/PhotoList/index.tsx b/web/apps/photos/src/components/PhotoList/index.tsx index c63297396..3eee1d683 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], );