Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore(AllPeople):adding-comments

Aswin Asok7926396865e0
diff --git a/web/apps/photos/src/components/Collections/AllPeople.tsx b/web/apps/photos/src/components/Collections/AllPeople.tsx
index de04b3b2bf..04642e3264 100644
--- a/web/apps/photos/src/components/Collections/AllPeople.tsx
+++ b/web/apps/photos/src/components/Collections/AllPeople.tsx
@@ -130,6 +130,12 @@ export const AllPeople: React.FC<AllPeopleProps> = ({
};
const hasSearchQuery = !!searchTerm.trim();
+
+ /**
+ * Preparing the additional faces list when showing
+ * more faces, excluding duplicates from the visible list
+ * and excluding hidden cgroups
+ */
const extraPeople = useMemo(() => {
const visiblePersonIDs = new Set(people.map(({ id }) => id));
const extra = (peopleState?.people ?? []).filter(