Hide DB only tables from default nav (#12743)

Implements #12740
This commit is contained in:
Rijk van Zanten
2022-04-13 15:15:19 -04:00
committed by GitHub
parent ea3555bd88
commit c5f2fe54be

View File

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