diff --git a/components/dashboard/links/Editor.vue b/components/dashboard/links/Editor.vue index 6969a44..d21912e 100644 --- a/components/dashboard/links/Editor.vue +++ b/components/dashboard/links/Editor.vue @@ -114,7 +114,7 @@ async function onSubmit(formData) { body: link, }) dialogOpen.value = false - emit('update:link', newLink, 'edit') + emit('update:link', newLink, isEdit ? 'edit' : 'create') if (isEdit) { toast('Link updated successfully') }