fleetmap-reports 1.0.973 → 1.0.974
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/util/trips.js +1 -1
package/package.json
CHANGED
package/src/util/trips.js
CHANGED
|
@@ -148,7 +148,7 @@ function isInsideTimetable (t, userData) {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
function updateTrip (device, t, route) {
|
|
151
|
-
route = route.filter(p => p.attributes.ignition)
|
|
151
|
+
route = route.filter(p => p && p.attributes.ignition)
|
|
152
152
|
if (!route.length) { return }
|
|
153
153
|
const distance = calculateDistance(route, false) * 1000
|
|
154
154
|
t.distance = distance
|