cats-charts 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4722,8 +4722,8 @@ class SankeyChart {
4722
4722
  /* ------------------ DESTROY ------------------ */
4723
4723
  ngOnDestroy() {
4724
4724
  this.resizeObserver?.disconnect();
4725
- if (this.chartInstance) {
4726
- this.chartInstance.getZr().off('mousedown', this.stopNodeDragPropagation);
4725
+ if (this.chartInstance && !this.chartInstance.isDisposed()) {
4726
+ this.chartInstance.getZr()?.off('mousedown', this.stopNodeDragPropagation);
4727
4727
  this.chartInstance.off();
4728
4728
  this.chartInstance.dispose();
4729
4729
  }