From f635e0a63417e6835f369aaa24ed4a1395bfa5d2 Mon Sep 17 00:00:00 2001 From: patak Date: Mon, 15 May 2023 09:26:55 +0200 Subject: [PATCH] fix: personal notes on loading --- components/account/AccountHeader.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/account/AccountHeader.vue b/components/account/AccountHeader.vue index 6d0642b4..f8922fd6 100644 --- a/components/account/AccountHeader.vue +++ b/components/account/AccountHeader.vue @@ -82,6 +82,10 @@ watchEffect(() => { }) const personalNoteDraft = ref(relationship?.note ?? '') +watch($$(relationship), (relationship, oldValue) => { + if (!oldValue && relationship) + personalNoteDraft.value = relationship.note ?? '' +}) async function editNote(event: Event) { if (!event.target || !('value' in event.target) || !relationship)