refactor: handle id
This commit is contained in:
parent
1a1f2cb9f3
commit
b87178e0b5
2 changed files with 1 additions and 2 deletions
|
|
@ -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: '',
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue