From b87178e0b5874cbf3e18e0f12e4b4809341f655d Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Wed, 20 Nov 2024 14:41:55 +0700 Subject: [PATCH] refactor: handle id --- src/pages/03_customer-management/form.ts | 2 +- src/stores/customer/index.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/03_customer-management/form.ts b/src/pages/03_customer-management/form.ts index 85117c4a..157b5e82 100644 --- a/src/pages/03_customer-management/form.ts +++ b/src/pages/03_customer-management/form.ts @@ -385,7 +385,7 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => { id?: string; codeCustomer?: string; } = { - id: '', + id: undefined, customerId: '', // branchCode: '', // codeCustomer: '', diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index 741d4578..b9e47f2e 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -345,7 +345,6 @@ const useCustomerStore = defineStore('api-customer', () => { async function createBranch( data: CustomerBranchCreate & { - id?: string; customerId: string; }, ) {