Fix: Order server permission list ABC (#3774)

This commit is contained in:
Mike
2025-01-07 21:09:52 +01:00
committed by GitHub
parent c2523397be
commit 0fa4e2f7ab
@@ -27,10 +27,12 @@ export const useServerInfoScopes = () => {
const scopes = computed(() => {
const base = result.value?.serverInfo.scopes || []
const cloned = cloneDeep(base) // cause it might get directly plopped back into the cache by a dev
return cloned.map((scope) => ({
...scope,
name: scope.name as unknown as (typeof AllScopes)[number]
}))
return cloned
.map((scope) => ({
...scope,
name: scope.name as unknown as (typeof AllScopes)[number]
}))
.sort((a, b) => a.name.localeCompare(b.name))
})
return {