logitude-dashboard-library 3.1.8 → 3.1.9

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.
package/dist/index.js CHANGED
@@ -1460,6 +1460,7 @@ var FusionChart = React.forwardRef(function (props, comRef) {
1460
1460
  var progressRef = React.useRef(null);
1461
1461
  var fusionRef = React.useRef(null);
1462
1462
  var fusionChartHelper = React.useRef();
1463
+ var isDummyChangesActive = React.useRef(false);
1463
1464
  React.useEffect(function () {
1464
1465
  var _props$dataBinding;
1465
1466
 
@@ -1475,6 +1476,7 @@ var FusionChart = React.forwardRef(function (props, comRef) {
1475
1476
  if (chartData && chartData.current) {
1476
1477
  var _data = JSON.parse(JSON.stringify(chartData.current));
1477
1478
 
1479
+ isDummyChangesActive.current = true;
1478
1480
  handleData(_data, true);
1479
1481
  }
1480
1482
  });
@@ -1576,6 +1578,10 @@ var FusionChart = React.forwardRef(function (props, comRef) {
1576
1578
 
1577
1579
  if (!isDummyChange) {
1578
1580
  setDataLoaded(true);
1581
+ } else {
1582
+ setTimeout(function () {
1583
+ isDummyChangesActive.current = false;
1584
+ }, 100);
1579
1585
  }
1580
1586
  };
1581
1587
 
@@ -1632,6 +1638,7 @@ var FusionChart = React.forwardRef(function (props, comRef) {
1632
1638
  var loaded = function loaded(event) {
1633
1639
  var _widget$current6, _widget$current7;
1634
1640
 
1641
+ if (isDummyChangesActive && isDummyChangesActive.current) return;
1635
1642
  var chartData = event.sender.args && event.sender.args.dataSource ? event.sender.args.dataSource : null;
1636
1643
  var isPieOrDonutChart = ((_widget$current6 = widget.current) === null || _widget$current6 === void 0 ? void 0 : _widget$current6.TypeCode) == 'pie' || ((_widget$current7 = widget.current) === null || _widget$current7 === void 0 ? void 0 : _widget$current7.TypeCode) == 'donut';
1637
1644