logitude-dashboard-library 3.1.15 → 3.1.16

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