highcharts / highcharts-vue

Other
686 stars 150 forks source link

Fix bug in onBeforeUnmount where .destroy() is called #248

Closed shenie closed 1 year ago

shenie commented 1 year ago

Previously the value was null and the if-stmt was sufficient before calling .destroy but since https://github.com/highcharts/highcharts-vue/pull/236, the if-stmt is always true so it ended up trying to call .destroy() on the empty object.