From c5f2fe54be8ea993f33bc4b4685d2921f1d5fa7e Mon Sep 17 00:00:00 2001 From: Rijk van Zanten Date: Wed, 13 Apr 2022 15:15:19 -0400 Subject: [PATCH] Hide DB only tables from default nav (#12743) Implements #12740 --- app/src/stores/collections.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);