fleetmap-reports 1.0.800 → 1.0.801

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.800",
3
+ "version": "1.0.801",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -245,7 +245,7 @@ function processDevices (from, to, devices, data, userData) {
245
245
  summary
246
246
  }
247
247
 
248
- if ((deviceData.summary.length && deviceData.summary[0].startTime) || !userData.onlyWithActivity) {
248
+ if ((deviceData.summary.length && deviceData.summary.some(s => s.startTime)) || !userData.onlyWithActivity) {
249
249
  devicesResult.push(deviceData)
250
250
  }
251
251
  })