fleetmap-reports 2.0.15 → 2.0.16

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.15",
3
+ "version": "2.0.16",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/kms-report.js CHANGED
@@ -458,7 +458,7 @@ function getExcelContent (userData, d, translations) {
458
458
 
459
459
  if (userData.groupByDay) {
460
460
  const partner = getUserPartner(userData.user)
461
- if (d.days) {
461
+ if (d.days && d.device) {
462
462
  if (partner.reports.kmsReportDaysInColumns) {
463
463
  const vehicle = {
464
464
  name: d.device.name,