fix: handle code undefined

This commit is contained in:
Thanaphon Frappet 2024-11-11 17:47:22 +07:00
parent f2b9ab0217
commit ddd1094f3a

View file

@ -235,7 +235,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
? '' ? ''
: currentFormData.value.customerBranch?.[0].branchCode : currentFormData.value.customerBranch?.[0].branchCode
: '', : '',
codeCustomer: '', codeCustomer: undefined,
legalPersonNo: legalPersonNo:
currentFormData.value.customerBranch.length !== 0 currentFormData.value.customerBranch.length !== 0