fleetmap-reports 2.0.372 → 2.0.373

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": "2.0.372",
3
+ "version": "2.0.373",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -206,7 +206,7 @@ function findPOIData (event, userData) {
206
206
  }
207
207
 
208
208
  function findGeofenceData (event, userData) {
209
- const geofence = userData.geofences.filter(g => !g.area.startsWith('CIRCLE')).find(g =>
209
+ const geofence = userData.geofences.filter(g => g && g.area && !g.area.startsWith('CIRCLE')).find(g =>
210
210
  checkGeofenceIn(convertPositionToFeature(event.position), convertToFeature(g)))
211
211
  if (geofence) {
212
212
  const group = userData.groups.find(g => g.geofenceIds && g.geofenceIds.includes(geofence.id))