From 6b277687f44130e5f7463fcd7efa88a994435662 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Fri, 18 Oct 2024 11:14:44 +0700 Subject: [PATCH] refactor: set value default --- src/pages/05_quotation/form.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/05_quotation/form.ts b/src/pages/05_quotation/form.ts index 5ef852fa..18c20d44 100644 --- a/src/pages/05_quotation/form.ts +++ b/src/pages/05_quotation/form.ts @@ -33,6 +33,7 @@ const DEFAULT_DATA: QuotationPayload = { registeredBranchId: '', _count: { worker: 0 }, status: 'CREATED', + remark: undefined, }; export const useQuotationForm = defineStore('form-quotation', () => { @@ -219,6 +220,7 @@ export const useQuotationForm = defineStore('form-quotation', () => { } return { + DEFAULT_DATA, currentFormState, currentFormData, newWorkerList,