fleetmap-reports 1.0.949 → 1.0.950

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.949",
3
+ "version": "1.0.950",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -306,7 +306,7 @@ function getCountry (position) {
306
306
 
307
307
  async function getRoadSpeedLimits (devices, routes, threshold, minimumMinutes = 0) {
308
308
  const position = routes.find(p => getCountry(p))
309
- const country = getCountry(position)
309
+ const country = position && getCountry(position)
310
310
  const config = {
311
311
  CHL: getOSMSpeedingEvents,
312
312
  MAR: getOSMSpeedingEvents,