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 +1 -1
- package/src/speeding-report.js +1 -1
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -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,
|