diff --git a/packages/nc-gui/composables/useGlobal/index.ts b/packages/nc-gui/composables/useGlobal/index.ts index 1e538b016d..12259b4419 100644 --- a/packages/nc-gui/composables/useGlobal/index.ts +++ b/packages/nc-gui/composables/useGlobal/index.ts @@ -66,6 +66,8 @@ export const useGlobal = createGlobalState((): UseGlobalReturn => { (nextPayload) => { if (nextPayload) { state.user.value = { + // keep existing props if user id same as before + ...(state.user.value?.id === nextPayload.id ? state.user.value || {} : {}), id: nextPayload.id, email: nextPayload.email, firstname: nextPayload.firstname,