This commit is contained in:
Manav Rathi
2024-10-05 17:08:20 +05:30
parent 5605c5b794
commit 4fd3fb09c9

View File

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