DEV Community

Discussion on: What this error means '_id is not defined'

Collapse
 
jozsefsallai profile image
József Sallai

Try setting breakpoints and debugging your code, see what values you have when the mapping happens.

Just by looking at the code, this can either be because one of your items in userDetails is null or your state is null.