fix: can't create branch

fix #162
This commit is contained in:
Thanaphon Frappet 2024-12-23 11:08:14 +07:00
parent 54bba1fee3
commit 639608e67b

View file

@ -259,7 +259,8 @@ export const useCustomerForm = defineStore('form-customer', () => {
telephoneNo:
currentFormData.value.customerBranch?.at(0)?.telephoneNo || '',
gender: currentFormData.value.customerBranch?.at(0)?.gender || '',
birthDate: currentFormData.value.customerBranch?.at(0)?.birthDate || '',
birthDate:
currentFormData.value.customerBranch?.at(0)?.birthDate || undefined,
businessType:
currentFormData.value.customerBranch?.at(0)?.businessType || '',