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?![No description](https://cdn.answeroverflow.com/1182874757385965609/image.png)
1 Reply
Good lord
all I needed to do was return the result of map function 😩
https://stackoverflow.com/a/42242325/6212957
![peporestless](https://cdn.discordapp.com/emojis/1176124586463600731.png)