diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 5636ff9f..e33b0175 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -2075,7 +2075,7 @@ const emptyCreateDialog = ref(false); }); } else { await customerStore.editBranchById( - customerFormData.customerBranch[idx].id, + customerFormData.customerBranch[idx].id || '', { ...customerFormData.customerBranch[idx], id: undefined, @@ -2106,7 +2106,7 @@ const emptyCreateDialog = ref(false); async () => { if (!!customerFormData.customerBranch?.[idx].id) { const action = await deleteCustomerBranchById( - customerFormData.customerBranch[idx].id, + customerFormData.customerBranch[idx].id || '', ); if (action) { await customerFormStore.assignFormData(