Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add to collection creates 2 entries for a file

Manav Rathif6f81c4eeb28
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 5bee23a30d..4139c6b466 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -549,7 +549,9 @@ export default function Gallery() {
);
} else if (barMode == "people") {
const pfSet = new Set(ensure(activePerson).fileIDs);
- filteredFiles = files.filter((f) => pfSet.has(f.id));
+ filteredFiles = getUniqueFiles(
+ files.filter((f) => pfSet.has(f.id)),
+ );
} else {
const baseFiles = barMode == "hidden-albums" ? hiddenFiles : files;
filteredFiles = getUniqueFiles(