Skip to content

Commit

Permalink
fix: personal notes on loading
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed May 15, 2023
1 parent 29f6a73 commit f635e0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/account/AccountHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f635e0a

Please sign in to comment.