Browse Source

fix: Fixed user display name fix

pull/6842/head
Muhammed Mustafa 1 year ago
parent
commit
aeee63a8c8
  1. 2
      packages/nc-gui/composables/useRoles/index.ts

2
packages/nc-gui/composables/useRoles/index.ts

@ -115,6 +115,7 @@ export const useRoles = createSharedComposable(() => {
...user.value,
roles: res.roles,
base_roles: res.base_roles,
display_name: res.display_name,
} as typeof User
} else {
const res = await api.auth.me({})
@ -123,6 +124,7 @@ export const useRoles = createSharedComposable(() => {
...user.value,
roles: res.roles,
base_roles: res.base_roles,
display_name: res.display_name,
} as typeof User
}
}

Loading…
Cancel
Save