Quantcast
Channel: TypeError: Cannot read property 'map' of undefined - Stack Overflow en español
Viewing all articles
Browse latest Browse all 2

Respuesta de rheazyk en TypeError: Cannot read property 'map' of undefined

$
0
0

Puedes validar que this.props.badges sea diferente de undefined de esta manera:

this.props.badges && this.props.badges.map((badge)=>{


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>