diff --git a/packages/nc-gui-v2/composables/useProject.ts b/packages/nc-gui-v2/composables/useProject.ts index 05206a32e7..b0e6565aef 100644 --- a/packages/nc-gui-v2/composables/useProject.ts +++ b/packages/nc-gui-v2/composables/useProject.ts @@ -15,7 +15,7 @@ const [setup, use] = useInjectionState((_projectId?: MaybeRef) => { const projectId = computed(() => (_projectId ? unref(_projectId) : (route.params.projectId as string))) const project = ref({}) const tables = ref([]) - const projectRoles = ref>({}) + const projectRoles = useState>(USER_PROJECT_ROLES, () => ({})) const projectMetaInfo = ref() // todo: refactor path param name and variable name @@ -49,7 +49,6 @@ const [setup, use] = useInjectionState((_projectId?: MaybeRef) => { async function loadProjectRoles() { projectRoles.value = {} - if (isSharedBase.value) { const user = await $api.auth.me( {},