https://i.sstatic.net/We8lJ.pngHow can I retrieve the index of an object's array? https://i.sstatic.net/hmDKx.png
I am looking to access the index of the items array within the form object.
https://i.sstatic.net/OxePH.png
When adding a new item row, the unit_price of the new row overrides previously created rows.
The issue stems from this scenario
productSelected(product) {
this.form.items['id'] = product.id;
this.form.items['unit_price'] = product.price;
}
I aim to set the product price to form.items[index].unit_price