logitude-dashboard-library 3.1.13 → 3.1.14

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
@@ -474,10 +474,9 @@ var KpiChart = function KpiChart(props) {
474
474
  }
475
475
 
476
476
  function getPreviousValueComponent() {
477
- if (!(data !== null && data !== void 0 && data.CompareWithPrevious)) return null;
478
- var prevtext = !(data !== null && data !== void 0 && data.ComparisonValue) ? '' : data === null || data === void 0 ? void 0 : data.ComparisonValue;
477
+ if (isNullOrUndefined(data) || isNullOrUndefined(data === null || data === void 0 ? void 0 : data.ComparisonValue)) return "";
479
478
  var labelFormated = getLabelFormatByDateGroupType(data.ComparisonLabel, widget.current, false);
480
- prevtext = labelFormated + ": " + prevtext;
479
+ var prevtext = labelFormated + ": " + (data === null || data === void 0 ? void 0 : data.ComparisonValue);
481
480
  return React__default.createElement("div", {
482
481
  className: "dl-kpi-prev-container"
483
482
  }, React__default.createElement("div", {