From b6f621cdfe573c0f62bda68d3877cf6797c5390f Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 3 Oct 2024 14:58:29 +0700 Subject: [PATCH] feat: prevent overwrite --- src/pages/05_quotation/form.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/05_quotation/form.ts b/src/pages/05_quotation/form.ts index 030bd39e..d2d4cce0 100644 --- a/src/pages/05_quotation/form.ts +++ b/src/pages/05_quotation/form.ts @@ -85,8 +85,8 @@ export const useQuotationForm = defineStore('form-quotation', () => { } if (currentFormState.value.mode === 'edit' && currentFormData.value.id) { await quotationStore.editQuotation({ - id: currentFormData.value.id, ...currentFormData.value, + id: currentFormData.value.id, }); }