diff --git a/app/src/stores/collections.ts b/app/src/stores/collections.ts index 6b195cc180..954c8b449b 100644 --- a/app/src/stores/collections.ts +++ b/app/src/stores/collections.ts @@ -21,7 +21,7 @@ export const useCollectionsStore = defineStore({ visibleCollections(): Collection[] { return this.collections .filter(({ collection }) => collection.startsWith('directus_') === false) - .filter((collection) => collection.meta?.hidden !== true); + .filter((collection) => collection.meta && collection.meta?.hidden !== true); }, allCollections(): Collection[] { return this.collections.filter(({ collection }) => collection.startsWith('directus_') === false);