Browse Source

[hotfix] TypeError: Cannot read property 'id' of undefined (#4229)

version-14
Makarand Bauskar 7 years ago
committed by Nabin Hait
parent
commit
e4c0cc5709
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/views/reports/query_report.js

+ 1
- 1
frappe/public/js/frappe/views/reports/query_report.js View File

@@ -591,7 +591,7 @@ frappe.views.QueryReport = Class.extend({
newrow.id = newrow.name ? newrow.name : ("_" + newrow._id);
this.data.push(newrow);
}
if(this.report_doc.add_total_row) {
if(this.data.length && this.report_doc.add_total_row) {
this.total_row_id = this.data[this.data.length - 1].id;
}
},


Loading…
Cancel
Save