mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 11:36:59 +00:00
fix: avoid trying to load workspace while deleting and after deleting workspace
This commit is contained in:
@@ -13,13 +13,14 @@ const { isUIAllowed } = useRoles()
|
||||
const workspaceStore = useWorkspace()
|
||||
|
||||
const { loadRoles } = useRoles()
|
||||
const { activeWorkspace: _activeWorkspace, workspaces } = storeToRefs(workspaceStore)
|
||||
const { activeWorkspace: _activeWorkspace, workspaces, deletingWorkspace } = storeToRefs(workspaceStore)
|
||||
const { loadCollaborators, loadWorkspace } = workspaceStore
|
||||
|
||||
const orgStore = useOrg()
|
||||
const { orgId, org } = storeToRefs(orgStore)
|
||||
|
||||
const currentWorkspace = computedAsync(async () => {
|
||||
if (deletingWorkspace.value) return
|
||||
let ws
|
||||
if (props.workspaceId) {
|
||||
ws = workspaces.value.get(props.workspaceId)
|
||||
|
||||
Reference in New Issue
Block a user