diff --git a/packages/nc-gui/components/project/AccessSettings.vue b/packages/nc-gui/components/project/AccessSettings.vue index f3f77a4c31..c21f6a5540 100644 --- a/packages/nc-gui/components/project/AccessSettings.vue +++ b/packages/nc-gui/components/project/AccessSettings.vue @@ -135,6 +135,11 @@ watchDebounced( }, ) +const userProjectRole = computed<(typeof ProjectRoles)[keyof typeof ProjectRoles]>(() => { + const projectUser = collaborators.value?.find((collab) => collab.id === user.value?.id) + return projectUser?.projectRoles +}) + onMounted(async () => { isLoading.value = true try { @@ -155,8 +160,6 @@ onMounted(async () => {