Fix duplicates on edit

This commit is contained in:
7heMech 2025-01-12 14:38:33 +02:00 committed by GitHub
parent 8731baa302
commit 8d647ce39b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,7 @@ async function onSubmit(formData) {
body: link,
})
dialogOpen.value = false
emit('update:link', newLink)
emit('update:link', newLink, 'edit')
if (isEdit) {
toast('Link updated successfully')
}