Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix

Manav Rathi4fd3fb09c99e
diff --git a/web/packages/new/photos/services/collection/ui.ts b/web/packages/new/photos/services/collection/ui.ts
index f34706d920..4258bf288c 100644
--- a/web/packages/new/photos/services/collection/ui.ts
+++ b/web/packages/new/photos/services/collection/ui.ts
@@ -108,7 +108,10 @@ export const isSystemCollection = (type: CollectionSummaryType) =>
export const areOnlySystemCollections = (
collectionSummaries: CollectionSummaries,
-) => collectionSummaries.values().every(({ type }) => isSystemCollection(type));
+) =>
+ [...collectionSummaries.values()].every(({ type }) =>
+ isSystemCollection(type),
+ );
export const canAddToCollection = (type: CollectionSummaryType) =>
!addToDisabledCSTypes.has(type);