logitude-dashboard-library 3.1.39 → 3.1.40

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
@@ -1787,11 +1787,11 @@ var getGaugeObject = function getGaugeObject(data, widget) {
1787
1787
  fusionObject.dataSource = {
1788
1788
  "chart": chartInfo,
1789
1789
  "colorRange": {
1790
- "color": getWidgetRanges(widget, data === null || data === void 0 ? void 0 : data.Value)
1790
+ "color": getWidgetRanges(widget, !isNullOrUndefined(data) && !isNullOrUndefined(data === null || data === void 0 ? void 0 : data.Value) ? data === null || data === void 0 ? void 0 : data.Value : 0)
1791
1791
  },
1792
1792
  "dials": {
1793
1793
  "dial": [{
1794
- "value": data.Value
1794
+ "value": !isNullOrUndefined(data) && !isNullOrUndefined(data === null || data === void 0 ? void 0 : data.Value) ? data === null || data === void 0 ? void 0 : data.Value : 0
1795
1795
  }]
1796
1796
  }
1797
1797
  };