From 639608e67be17549bf682647f1505825b6e6ae57 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 23 Dec 2024 11:08:14 +0700 Subject: [PATCH] fix: can't create branch fix #162 --- src/pages/03_customer-management/form.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/03_customer-management/form.ts b/src/pages/03_customer-management/form.ts index 1cc7b126..1055546f 100644 --- a/src/pages/03_customer-management/form.ts +++ b/src/pages/03_customer-management/form.ts @@ -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 || '',