sei-ec-remote / project-4-issues

Open an issue to receive help on project 4
0 stars 0 forks source link

Component Issue #301

Open Jlarranaga opened 9 months ago

Jlarranaga commented 9 months ago

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)

image image

If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?

image

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

nayaba commented 9 months ago

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?