fix: create sub branch

This commit is contained in:
Thanaphon Saengchan 2025-09-17 11:15:05 +07:00 committed by Methapon2001
parent 0e57a3daf6
commit 52c384f0fb

View file

@ -258,7 +258,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