Browse Source

fix: workspace details not loading in admin panel (#8475)

pull/8480/head
Anbarasu 6 months ago committed by GitHub
parent
commit
af48ec4146
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      packages/nc-gui/components/workspace/CollaboratorsList.vue
  2. 3
      packages/nc-gui/components/workspace/View.vue

3
packages/nc-gui/components/workspace/CollaboratorsList.vue

@ -5,7 +5,7 @@ const props = defineProps<{
workspaceId?: string
}>()
const { workspaceRoles, loadRoles } = useRoles()
const { workspaceRoles } = useRoles()
const workspaceStore = useWorkspace()
@ -97,7 +97,6 @@ const accessibleRoles = computed<WorkspaceUserRoles[]>(() => {
})
onMounted(async () => {
await loadRoles(undefined, {}, currentWorkspace.value?.id)
loadSorts()
})
</script>

3
packages/nc-gui/components/workspace/View.vue

@ -11,6 +11,8 @@ const route = router.currentRoute
const { isUIAllowed } = useRoles()
const workspaceStore = useWorkspace()
const { loadRoles } = useRoles()
const { activeWorkspace: _activeWorkspace, workspaces } = storeToRefs(workspaceStore)
const { loadCollaborators, loadWorkspace } = workspaceStore
@ -28,6 +30,7 @@ const currentWorkspace = computedAsync(async () => {
} else {
ws = _activeWorkspace.value
}
await loadRoles(undefined, {}, ws?.id)
return ws
})

Loading…
Cancel
Save