Skip to content

armgit / ente

Public Imported from GitHub
0

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

Get file

Manav Rathi20bbdb131dfa
diff --git a/web/packages/new/photos/components/FileViewerPhotoSwipe.tsx b/web/packages/new/photos/components/FileViewerPhotoSwipe.tsx
index 5196d2f6dd..ae4b21efcb 100644
--- a/web/packages/new/photos/components/FileViewerPhotoSwipe.tsx
+++ b/web/packages/new/photos/components/FileViewerPhotoSwipe.tsx
@@ -336,8 +336,14 @@ export class FileViewerPhotoSwipe {
inner: pathWithIDAndTransform,
outlineID: "pswp__icn-info",
},
- onClick: (e) => {
- console.log("click", e);
+ onClick: (e, element, pswp) => {
+ const file = this.files[pswp.currIndex];
+ if (!file) {
+ assertionFailed();
+ return;
+ }
+
+ console.log("info", file);
},
});
});