diff --git a/src/pages/03_customer-management/form.ts b/src/pages/03_customer-management/form.ts index 441e892b..51ef0777 100644 --- a/src/pages/03_customer-management/form.ts +++ b/src/pages/03_customer-management/form.ts @@ -253,7 +253,7 @@ export const useCustomerForm = defineStore('form-customer', () => { : '', registerCompanyName: '', contactName: '', - file: undefined, + file: [], }); state.value.branchIndex = (currentFormData.value.customerBranch?.length || 0) - 1; @@ -345,7 +345,7 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => { registerCompanyName: '', statusSave: false, contactName: '', - file: undefined, + file: [], }; let resetFormData = structuredClone(defaultFormData); @@ -411,7 +411,7 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => { contactName: _data.contactName, registerCompanyName: '', statusSave: false, - file: undefined, + file: [], }; currentFormData.value = structuredClone(resetFormData);