score:0

Accepted answer

in this below line,

<div style={{textalign: 'center'}}>{object.unit_test_count}</div> 

map() will check for the property on the variable name you passed to map at

 {!objectstoshow ? null : **objectstoshow.map(object =>**

so you can change that variable name to something else.

or

you can assign object.unit_test_count to any other variable and use it inside the loop.


Related Query

More Query from same tag