From 694bff406405b922e0a3f0dcfb539afdf379ac4a Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Tue, 29 Oct 2024 17:59:37 +0700 Subject: [PATCH] refactor: id is null --- src/stores/payment/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/payment/index.ts b/src/stores/payment/index.ts index b34c4490..7dc60ce4 100644 --- a/src/stores/payment/index.ts +++ b/src/stores/payment/index.ts @@ -59,7 +59,7 @@ export const useInvoice = defineStore('invoice-store', () => { return res; } - async function editInvoice(data: InvoicePayload & { id: string }) { + async function editInvoice(data: InvoicePayload & { id?: string }) { const res = await api.put(`/invoice/${data.id}`, { ...data, id: undefined,