From 6556a95e8befb7f524e99919d479a956a03973b7 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 18 Oct 2024 17:38:33 +0700 Subject: [PATCH] fix: error undefined --- src/pages/05_quotation/QuotationForm.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index a35ebafc..05776738 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -441,6 +441,7 @@ function convertToTable(nodes: Node[]) { list.forEach((v) => { v.amount = Math.max(selectedWorker.value.length, 1); + if (!v.workerIndex) v.workerIndex = []; for (let i = 0; i < selectedWorker.value.length; i++) { v.workerIndex.push(i); }