logitude-dashboard-library 3.2.29 → 3.2.32

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
@@ -1113,6 +1113,10 @@ var KpiChart = function KpiChart(props) {
1113
1113
 
1114
1114
  var getLabelFromKPISettings = function getLabelFromKPISettings() {
1115
1115
  if (widget.current && widget.current.KPIComparisonSettings && widget.current.KPIComparisonSettings.length) {
1116
+ if (widget.current.IsGlobalFilterKPIComparison) {
1117
+ return getPeriodLabelByPeriodCode(widget.current.GlobalFilterDateTimeValueCode);
1118
+ }
1119
+
1116
1120
  var kpiSettings = JSON.parse(widget.current.KPIComparisonSettings);
1117
1121
  var PeriodDateFilter = kpiSettings ? kpiSettings.PeriodDateFilter : null;
1118
1122
  var isKPISettingsActivated = !isNullOrUndefinedOrEmpty(kpiSettings.PeriodFieldId);