Fix: Order server permission list ABC (#3774)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user