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; }, ) {