refactor: dynamic image based on customer type
This commit is contained in:
parent
542e48cd1d
commit
6d039862c2
6 changed files with 11 additions and 6 deletions
|
|
@ -177,6 +177,10 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
|||
|
||||
await customerStore.editById(state.value.editCustomerId, {
|
||||
...currentFormData.value,
|
||||
status:
|
||||
currentFormData.value.status !== 'CREATED'
|
||||
? currentFormData.value.status
|
||||
: undefined,
|
||||
image: currentFormData.value.image || undefined,
|
||||
customerBranch: undefined,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue