posted 4 years ago
I have a working project with the endpoint of array
Now I'm required to change it to object .
But this change ruined my project. I get the following error in the console:
What I have tried:
I changed the method of adding objects to the end point to be instead of
and then I got the above mentioned error in the console
here is the code:
and here the code