Merge pull request #12096 from nocodb/nc-fix/user-workspace-role-access-issue

fix(nc-gui): Cannot read properties of undefined (reading 'workspace-level-owner')
This commit is contained in:
Ramesh Mane
2025-08-15 11:23:41 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ const updateCollaborator = async (collab: any, roles: WorkspaceUserRoles) => {
}
const isOwnerOrCreator = computed(() => {
return workspaceRoles.value[WorkspaceUserRoles.OWNER] || workspaceRoles.value[WorkspaceUserRoles.CREATOR]
return workspaceRoles.value?.[WorkspaceUserRoles.OWNER] || workspaceRoles.value?.[WorkspaceUserRoles.CREATOR]
})
const accessibleRoles = computed<WorkspaceUserRoles[]>(() => {