From 57c2f9718ea09455bb5fec74d7a88186fe4d63e6 Mon Sep 17 00:00:00 2001 From: Massedil Date: Sun, 29 Jun 2025 15:56:51 +0200 Subject: [PATCH] fix: solve a case where fields stays empty in EditIdentity --- src/views/Account/children/EditIdentity.vue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/Account/children/EditIdentity.vue b/src/views/Account/children/EditIdentity.vue index f5899a317..11135eab1 100644 --- a/src/views/Account/children/EditIdentity.vue +++ b/src/views/Account/children/EditIdentity.vue @@ -285,12 +285,17 @@ const baseIdentity: IPerson = { const identity = ref(baseIdentity); -watch(person, () => { - console.debug("person changed", person.value); - if (person.value) { - identity.value = { ...person.value }; - } -}); +watch( + person, + () => { + console.debug("person changed", person.value); + if (person.value) { + identity.value = { ...person.value }; + } + }, + // We need to call "immediate: true" because when first loading update/xxx, there is no change to person + { immediate: true } +); const avatarMaxSize = useAvatarMaxSize();