refactor: handle id

This commit is contained in:
Thanaphon Frappet 2024-11-20 14:41:55 +07:00
parent 1a1f2cb9f3
commit b87178e0b5
2 changed files with 1 additions and 2 deletions

View file

@ -385,7 +385,7 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => {
id?: string; id?: string;
codeCustomer?: string; codeCustomer?: string;
} = { } = {
id: '', id: undefined,
customerId: '', customerId: '',
// branchCode: '', // branchCode: '',
// codeCustomer: '', // codeCustomer: '',

View file

@ -345,7 +345,6 @@ const useCustomerStore = defineStore('api-customer', () => {
async function createBranch( async function createBranch(
data: CustomerBranchCreate & { data: CustomerBranchCreate & {
id?: string;
customerId: string; customerId: string;
}, },
) { ) {