Hello,
I am trying to put all of the relevant components I will iterate through into an array. However, when I begin interating and then try to get the value from the component, I receive an error that 'value' doesnt exist. However, if it still prints the value with a console.log
Note, the components are instances within a legacy list.
var listComponents = [
[budget_realestate_subcat, newSubcatList.value[0][0]],
[budget_engineering_subcat, newSubcatList.value[1][0]],
[budget_interconnection_subcat, newSubcatList.value[2][0]]
]
for (i = 0; i < listComponents.length; i++) {
for (var x = 0; x < listComponents[i][1]; x++) {
var y = listComponents[i][0][x]
var z = listComponents[i][0][x]
list_val.push({val: y.value, lab: z.id})
console.log(y.value)
}
}```