refactor: allow hiding of columns in query report

This commit is contained in:
Shivam Mishra 2019-10-29 15:11:59 +05:30
parent 5fe4bc45c5
commit 92ffbfb067

View file

@ -457,7 +457,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
this.datatable.refresh(data, this.columns);
} else {
let datatable_options = {
columns: this.columns,
columns: this.columns.filter((col) => !col.hidden),
data: data,
inlineFilters: true,
treeView: this.tree_report,