Closed timurib closed 8 years ago
When makeChart() in componentDidMount() fails then component cannot be correctly unmounted and breaks whole application:
Uncaught TypeError: Cannot read property 'clear' of null @ ReactCompositeComponent.js:243 componentWillUnmount @ amcharts3-react.js:174 unmountComponent @ ReactCompositeComponent.js:243 unmountComponent @ ReactReconciler.js:52 ...
PR just checks that chart is available before clear().
Thanks for fixing this!
When makeChart() in componentDidMount() fails then component cannot be correctly unmounted and breaks whole application:
PR just checks that chart is available before clear().