Secretmapper / react-image-annotation

An infinitely customizable image annotation library built on React
https://secretmapper.github.io/react-image-annotation/
MIT License
326 stars 135 forks source link

TypeError: Cannot read property 'map' of undefined #39

Closed KristofferTolboll2 closed 4 years ago

KristofferTolboll2 commented 4 years ago

Whenever i try to implement my own solution or use the demo version i always get this error TypeError: Cannot read property 'map' of undefined

as i can see the error in the source, code it appears, that there are no initial annotations created, and therefore the component, can't map through them, which then creates the error, i have attached a screeenshot of the error.

image

How can this be fixed?

This problem should be addressed.