fix: error undefined

This commit is contained in:
Methapon Metanipat 2024-10-18 17:38:33 +07:00
parent 8095c1c167
commit 6556a95e8b

View file

@ -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);
}