diff --git a/src/VueChartwerkPodMixin.ts b/src/VueChartwerkPodMixin.ts index 322a883..2055738 100644 --- a/src/VueChartwerkPodMixin.ts +++ b/src/VueChartwerkPodMixin.ts @@ -32,7 +32,9 @@ export default { this.renderChart(); }, destroyed() { - this.pod.removeEventListeners(); + if(this.pod) { + this.pod.removeEventListeners(); + } this.pod = undefined; }, methods: {