fleetmap-reports 1.0.703 → 1.0.704

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