Browse Source

fix: when remove user from base update base_roles in state

pull/8826/head
Pranav C 5 months ago
parent
commit
94916344c4
  1. 1
      packages/nc-gui/components/project/AccessSettings.vue

1
packages/nc-gui/components/project/AccessSettings.vue

@ -118,6 +118,7 @@ const updateCollaborator = async (collab: any, roles: ProjectRoles) => {
} else {
currentCollaborator.roles = ProjectRoles.NO_ACCESS
}
currentCollaborator.base_roles = null
} else if (currentCollaborator.base_roles) {
currentCollaborator.roles = roles
await updateProjectUser(currentBase.value.id!, currentCollaborator as unknown as User)

Loading…
Cancel
Save