fix:edit value null

This commit is contained in:
Thanaphon Frappet 2024-10-02 14:04:46 +07:00
parent d7a99d2ee2
commit 34751b300e

View file

@ -63,7 +63,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
readonly: true,
imageEdit: false,
customerImageUrl: '',
editCustomerId: '',
editCustomerId: undefined,
editCustomerBranchId: '',
defaultCustomerImageUrl: '',
treeFile: [],
@ -987,9 +987,9 @@ export const useEmployeeForm = defineStore('form-employee', () => {
resetEmployeeData = {
...payload,
provinceId: province?.id,
districtId: district?.id,
subDistrictId: subDistrict?.id,
provinceId: province?.id || '',
districtId: district?.id || '',
subDistrictId: subDistrict?.id || '',
employeeCheckup: structuredClone(
payload.employeeCheckup?.length === 0
? defaultFormData.employeeCheckup