I'm trying to map an array of objects but it keeps saying that docs are undefined even though I can clearly see it in console.log
This is what I get when I console.log
{console.log(this.props.results.data)}
what I want is in the docs field. If I expand it looks like this
Since I want to print out the content of docs this is what I tried doing
<div className='list-render'>
{this.props.results.loading ? <LoadingSpinner/> :
<div className='row'>
{(this.props.results.data.docs.map((data) => { // code to print individual fields )}
</div>
</div>}
</div>
I get TypeError: this.props.results.data.docs is undefined I'm using mongoose-paginate-v2 library for pagination

