From d9c4de631519d098157b44142d4137004771a95b Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 28 Oct 2024 08:53:34 +0700 Subject: [PATCH] refactor: handle QuotationStatus at create --- src/stores/quotations/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/quotations/index.ts b/src/stores/quotations/index.ts index c434b677..7e9218f8 100644 --- a/src/stores/quotations/index.ts +++ b/src/stores/quotations/index.ts @@ -60,7 +60,7 @@ export const useQuotationStore = defineStore('quotation-store', () => { } async function createQuotation(data: QuotationPayload) { - const { _count, ...payload } = data; + const { _count, quotationStatus, ...payload } = data; const res = await api.post('/quotation', { ...payload,