refactor: id is null
This commit is contained in:
parent
1b915f1314
commit
694bff4064
1 changed files with 1 additions and 1 deletions
|
|
@ -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>(`/invoice/${data.id}`, {
|
||||
...data,
|
||||
id: undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue