From e606c104c061f09ad904a4026467de63b3804c35 Mon Sep 17 00:00:00 2001 From: Massedil Date: Thu, 19 Jun 2025 16:17:05 +0200 Subject: [PATCH] fix(identity): reset person when identityName is undefined Solves #1794 --- src/views/Account/children/EditIdentity.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/Account/children/EditIdentity.vue b/src/views/Account/children/EditIdentity.vue index ec92beb9c..f5899a317 100644 --- a/src/views/Account/children/EditIdentity.vue +++ b/src/views/Account/children/EditIdentity.vue @@ -265,7 +265,10 @@ onPersonResult(async ({ data }) => { onPersonError((err) => handleErrors(err as unknown as AbsintheGraphQLErrors)); -const person = computed(() => personResult.value?.fetchPerson); +const person = computed(() => + // person should be undefined if we are on the creation form and defined if we are on the edit form + props.identityName !== undefined ? personResult.value?.fetchPerson : undefined +); const baseIdentity: IPerson = { id: undefined,