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.
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.