From 8d647ce39b79461bd6914bd1768619614dae2fd0 Mon Sep 17 00:00:00 2001 From: 7heMech <83923848+7heMech@users.noreply.github.com> Date: Sun, 12 Jan 2025 14:38:33 +0200 Subject: [PATCH] Fix duplicates on edit --- components/dashboard/links/Editor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dashboard/links/Editor.vue b/components/dashboard/links/Editor.vue index 7f24bf7..6969a44 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) + emit('update:link', newLink, 'edit') if (isEdit) { toast('Link updated successfully') }