From f415e9aba9803d6865a4c1c0785aa90eb563942a Mon Sep 17 00:00:00 2001 From: Enzo Viry Date: Fri, 22 Nov 2024 11:00:41 +0100 Subject: [PATCH] fix: update btn trigger replace instead of update --- src/components/Data/Documents/Common/CreateOrUpdate.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Data/Documents/Common/CreateOrUpdate.vue b/src/components/Data/Documents/Common/CreateOrUpdate.vue index 99750be8e..f662289de 100644 --- a/src/components/Data/Documents/Common/CreateOrUpdate.vue +++ b/src/components/Data/Documents/Common/CreateOrUpdate.vue @@ -83,7 +83,7 @@ variant="primary" class="ml-2" :disabled="submitting || !isDocumentValid" - @click="submit" + @click="submit()" > Create @@ -94,7 +94,7 @@ class="ml-2" data-cy="DocumentUpdate-btn" :disabled="submitting || !isDocumentValid" - @click="submit" + @click="submit()" > Update