fix: only sxhow menu section when there are items
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -156,6 +156,10 @@ export const useIntegrationStore = defineStore('integrationStore', {
|
||||
|
||||
return Array.from(point.items.values())
|
||||
.filter(entry => entry.visible !== false)
|
||||
.map(entry => 'items' in entry
|
||||
? { ...entry, items: entry.items.filter(item => item.visible !== false) }
|
||||
: entry)
|
||||
.filter(entry => !('items' in entry) || entry.items.length > 0)
|
||||
.sort((a, b) => (a.priority ?? 100) - (b.priority ?? 100));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user