Skip to content

armgit / ente

Public Imported from GitHub
0

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

refractor(AllPeople):maintain-sort-on-expand

Aswin Asok5613ae28b3db
diff --git a/web/apps/photos/src/components/Collections/AllPeople.tsx b/web/apps/photos/src/components/Collections/AllPeople.tsx
index 04642e3264..3b136adbb9 100644
--- a/web/apps/photos/src/components/Collections/AllPeople.tsx
+++ b/web/apps/photos/src/components/Collections/AllPeople.tsx
@@ -152,9 +152,9 @@ export const AllPeople: React.FC<AllPeopleProps> = ({
const displayPeople = useMemo(
() =>
showingAllPeople || people.length == 0
- ? people.concat(extraPeople)
+ ? sortPeople(people.concat(extraPeople), peopleSortBy)
: people,
- [extraPeople, people, showingAllPeople],
+ [extraPeople, people, peopleSortBy, showingAllPeople],
);
const handleToggleShowingAllPeople = () => {