Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix

Manav Rathibf7be69c3d97
diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsx
index 378fdd2b11..1d41adbb00 100644
--- a/web/apps/photos/src/components/PhotoViewer/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx
@@ -762,7 +762,7 @@ function PhotoViewer(props: PhotoViewerProps) {
const scheduleUpdate = () => (needUpdate.current = true);
const isFav =
- photoSwipe.currItem &&
+ !!photoSwipe?.currItem &&
!!favoriteFileIDs?.has((photoSwipe.currItem as EnteFile).id);
return (