logitude-dashboard-library 3.2.5 → 3.2.6

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
@@ -980,9 +980,10 @@ function buildStackedDataSet(seriesMeasures, widget) {
980
980
  var emptylabels = dataSet.filter(function (e) {
981
981
  return e.seriesName == null;
982
982
  });
983
- dataSet = widget.SecondaryDateGroupCode ? sortDataSet(dataSet.filter(function (e) {
983
+ var filledLabels = dataSet.filter(function (e) {
984
984
  return e.seriesName != null;
985
- }), widget.SecondaryDateGroupCode) : dataSet;
985
+ });
986
+ dataSet = widget.SecondaryDateGroupCode ? sortDataSet(filledLabels, widget.SecondaryDateGroupCode) : filledLabels;
986
987
  return emptylabels.concat(dataSet);
987
988
  }
988
989