Axios request fails which fires Cannot read property ‘map’ of undefined

The condition will pass cause javascript script returns true for an empty array. the condition should be

if(this.props.post.length)

if the array length is zero the condition will not pass.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top