fleetmap-reports 1.0.507 → 1.0.508

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.507",
3
+ "version": "1.0.508",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -241,7 +241,7 @@ async function findEventsPosition (from, to, devices, events, routes, userData)
241
241
  const positions = routes.filter(p => p.deviceId === d.id)
242
242
  for (const a of deviceEvents) {
243
243
  const pIndex = positions.findIndex(p => p.id === a.positionId)
244
- if (pIndex > 0) {
244
+ if (pIndex >= 0) {
245
245
  let geofence = null
246
246
  if (a.geofenceId) {
247
247
  geofence = userData.geofences.find(g => g.id === a.geofenceId)