fix: Condition

This commit is contained in:
Deepesh Garg 2020-02-03 23:57:20 +05:30
parent c0cf5fddbd
commit f91ecd8d96

View file

@ -459,8 +459,8 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
data.splice(-1, 1);
}
if (this.datatable
&& this.datatable_options.showTotalRow === (this.raw_data.add_total_row
if (this.datatable && this.datatable.options
&& this.datatable.options.showTotalRow === (this.raw_data.add_total_row
&& (!this.raw_data.skip_total_row))) {
this.datatable.options.treeView = this.tree_report;
this.datatable.refresh(data, columns);