fleetmap-reports 2.0.348 → 2.0.349

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.348",
3
+ "version": "2.0.349",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -134,7 +134,7 @@ async function getEvents (traccarInstance, from, to, devices, userData, deviceCo
134
134
  const url = `https://${getServerHost()}/pinmeapi/reports/speeding-report/getEvents`
135
135
  return axios.post(url, { from, to, devices, userData, deviceCount, totalDevices, sliceSize, cookie }, { withCredentials: true }).then(d => d.data)
136
136
  } else {
137
- const geofencesFeatures = userData.geofences.filter(g => g.area.startsWith('POLYGON') &&
137
+ const geofencesFeatures = userData.geofences.filter(g => g.area && g.area.startsWith('POLYGON') &&
138
138
  g.attributes.speedLimit).map(g => convertToFeature(g))
139
139
 
140
140
  const allInOne = await traccarHelper.getAllInOne(traccarInstance, from, to, devices, true, false,