fleetmap-reports 1.0.557 → 1.0.559
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 +1 -1
- package/src/location-report.js +4 -1
package/package.json
CHANGED
package/src/location-report.js
CHANGED
|
@@ -314,13 +314,16 @@ function getDigitalPort2Label (row, translations) {
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
function getDigitalPortValue (row, index, translations, dAttributes) {
|
|
317
|
+
console.log('getDigitalPortValue', row, index, dAttributes)
|
|
317
318
|
switch (index) {
|
|
318
319
|
case 1:
|
|
319
320
|
if (row.attributes && row.attributes.door1 !== undefined) {
|
|
320
321
|
return translations.report[row.attributes.door1]
|
|
321
322
|
}
|
|
322
323
|
if (row.attributes && row.attributes.sensor !== undefined) {
|
|
323
|
-
return
|
|
324
|
+
return row.attributes.sensor
|
|
325
|
+
? dAttributes.sensor1on || row.attributes.sensor
|
|
326
|
+
: dAttributes.sensor1off || row.attributes.sensor
|
|
324
327
|
}
|
|
325
328
|
break
|
|
326
329
|
case 2:
|