fleetmap-reports 2.0.156 → 2.0.157

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.156",
3
+ "version": "2.0.157",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -241,7 +241,7 @@ async function exportSpeedingReportToPDF (userData, reportData) {
241
241
 
242
242
  function getEventType (a, translations, device, userData) {
243
243
  const result = _getEventType(a, translations, device, userData)
244
- return a.attributes.info ? `${result} (${a.attributes.info})` : result
244
+ return a.attributes && a.attributes.info ? `${result} (${a.attributes.info})` : result
245
245
  }
246
246
 
247
247
  function _getEventType (a, translations, device, userData) {