Closed zhangxiaoyu11 closed 5 years ago
TypeError: Cannot read property 'map' of null children src/pages/Evidence.js:40
I fixed the bug related to the null value of stage and region. Please remember never pass a value that might be null to map function. Always check null value before use map(). After fixing the null value problem, there are still some evidence pages that cannot open. Please fully check the Evidence.js file. Some other bugs may still in it.
If "sourceIds" or "species" is null the website will also crash. Just because of the following code:
const stage = data.evidence.stage.map
map function cannot deal will null