i have this object:
card: { customFields [ { id, value }, {id , value } ... ] }
A customFields array is inside cards, which contans elements consisting of an id and a value.
Now i want to update a certain element inside of the array, which can be done by doing something like this:
modifier.$set.customFields.0.value = x
but i have the number of the index only in a variable, so i tried:
const index = getTargetIndex();
modifier.$set.customFields[index].value = x
but it didn't work...
What do i have to add to the modifier.$set to update an element in this array?
Alternate Solution: i have the id of the element in the array if the update can be done on value by using the id.
It looks like you'll need to do it using a second update:
I'm assuming it's safe to call
super.update()
twice in the same hook.