Open Jlarranaga opened 9 months ago
MERN
.map property not being recognized from state object
Paste a link to your repository here https://github.com/Jlarranaga/FitnessAPI
So it looks like collection is not an array, which means we can't map through it. Collection right now seems to refer to the state object. Are we able to see the results of the console.log on line 25?
What stack are you using?
(ex: MERN(mongoose + react), DR(django + react), PEN, etc.)
MERN
What's the problem you're trying to solve?
.map property not being recognized from state object
Post any code you think might be relevant (one fenced block per file)
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
What is your best guess as to the source of the problem?
What things have you already tried to solve the problem?
Paste a link to your repository here https://github.com/Jlarranaga/FitnessAPI