mirror of
https://github.com/directus/directus.git
synced 2026-01-28 16:48:02 -05:00
@@ -52,11 +52,12 @@ export default function useNavigation(searchQuery?: Ref<string | null>): UsableN
|
||||
const group: NavItemGroup = {
|
||||
name: groupRaw.group_name,
|
||||
accordion: groupRaw.accordion,
|
||||
items: groupRaw.collections
|
||||
.map(({ collection }) => collectionsStore.getCollection(collection) as Collection)
|
||||
.filter((collection) => !!collection)
|
||||
.map(collectionToNavItem)
|
||||
.filter(search),
|
||||
items:
|
||||
groupRaw.collections
|
||||
?.map(({ collection }) => collectionsStore.getCollection(collection) as Collection)
|
||||
.filter((collection) => !!collection)
|
||||
.map(collectionToNavItem)
|
||||
.filter(search) ?? [],
|
||||
};
|
||||
|
||||
return group;
|
||||
|
||||
Reference in New Issue
Block a user