@easyv/charts 1.4.21 → 1.4.22

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.
@@ -109,7 +109,7 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref) {
109
109
  }
110
110
 
111
111
  return function () {
112
- delete window.aiData[id];
112
+ window.aiData && window.aiData[id] && delete window.aiData[id];
113
113
  };
114
114
  }, [JSON.stringify(aiData), id]);
115
115
 
@@ -540,7 +540,7 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
540
540
  }
541
541
 
542
542
  return function () {
543
- delete window.aiData[id];
543
+ window.aiData && window.aiData[id] && delete window.aiData[id];
544
544
  };
545
545
  }, [JSON.stringify(aiData), id]);
546
546
  var halfChartWidth = chartWidth / 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.4.21",
3
+ "version": "1.4.22",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -89,7 +89,7 @@ const Chart = memo(
89
89
  }
90
90
  }
91
91
  return ()=>{
92
- delete window.aiData[id];
92
+ window.aiData && window.aiData[id] && delete window.aiData[id];
93
93
  }
94
94
  },[JSON.stringify(aiData),id]);
95
95
 
@@ -462,7 +462,7 @@ const Component = memo(
462
462
  }
463
463
  }
464
464
  return ()=>{
465
- delete window.aiData[id];
465
+ window.aiData && window.aiData[id] && delete window.aiData[id];
466
466
  }
467
467
  },[JSON.stringify(aiData),id]);
468
468