mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix: personal notes on loading
This commit is contained in:
parent
29f6a73de1
commit
f635e0a634
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue