fix: create sub branch

This commit is contained in:
Thanaphon Saengchan 2025-09-17 11:15:05 +07:00 committed by Methapon2001
parent 49897ff007
commit 56f0a86845

View file

@ -262,7 +262,6 @@ export const useCustomerForm = defineStore('form-customer', () => {
async function addCurrentCustomerBranch() {
if (currentFormData.value.customerBranch?.some((v) => !v.id)) return;
currentFormData.value.customerBranch?.push({
id: '',
customerId: '',
branchCode:
currentFormData.value.customerBranch.length !== 0