refactor: dynamic image based on customer type

This commit is contained in:
Methapon2001 2024-08-05 15:42:00 +07:00
parent 542e48cd1d
commit 6d039862c2
6 changed files with 11 additions and 6 deletions

View file

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