fleetmap-reports 1.0.577 → 1.0.578

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "1.0.577",
3
+ "version": "1.0.578",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -306,7 +306,7 @@ function getTempValue (row) {
306
306
  }
307
307
 
308
308
  function getDigitalPort1Label (row, translations, dAttributes) {
309
- return dAttributes.sensor1 || translations.report.digital_ports1
309
+ return (dAttributes && dAttributes.sensor1) || translations.report.digital_ports1
310
310
  }
311
311
 
312
312
  function getDigitalPort2Label (row, translations) {