fleetmap-reports 1.0.807 → 1.0.808

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.807",
3
+ "version": "1.0.808",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -224,7 +224,9 @@ function processDevices (from, to, devices, data, userData) {
224
224
  endAddress: trips.length && trips[trips.length - 1].endAddress
225
225
  })
226
226
  } else {
227
- summary.push(...data.summaries.filter(s => s.deviceId === d.id))
227
+ if (data.summaries) {
228
+ summary.push(...data.summaries.filter(s => s.deviceId === d.id))
229
+ }
228
230
 
229
231
  if (summary.length) {
230
232
  summary.forEach(s => {