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);