Unable to edit data in store ( Solved )
I have a store function that is meant to update some of the properties of an existing
collection
within an array of collections
.
I am trying to update the properties using the Object.assign
method:
However, within the following code section, the collection
object does not update within the array itself after being returned from the map function:
the screenshot shows the modified, and original object.
Why could this be happening?1 Reply
Good lord all I needed to do was return the result of map function 😩
https://stackoverflow.com/a/42242325/6212957