From e581556e786986e1a484958b40aed8f3386d4d8c Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 3 Oct 2024 09:42:42 +0700 Subject: [PATCH] fix: move store inside to avoid possible error on import --- src/pages/05_quotation/form.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/05_quotation/form.ts b/src/pages/05_quotation/form.ts index 763c0982..a66c161a 100644 --- a/src/pages/05_quotation/form.ts +++ b/src/pages/05_quotation/form.ts @@ -6,9 +6,9 @@ import { QuotationPayload, EmployeeWorker } from 'src/stores/quotations/types'; import { useQuotationStore } from 'stores/quotations'; -const quotationStore = useQuotationStore(); - export const useQuotationForm = defineStore('form-quotation', () => { + const quotationStore = useQuotationStore(); + const defaultFormData: QuotationPayload = { service: [ {