fix: Return empty object if there are no settings for a report

Query reports does not have settings.
This commit is contained in:
Suraj Shetty 2020-01-10 12:42:46 +05:30
parent ec53a57f4b
commit e2986d343a

View file

@ -186,7 +186,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
let report_script_name = this.report_doc.report_type === 'Custom Report'
? this.report_doc.reference_report
: this.report_name;
return frappe.query_reports[report_script_name];
return frappe.query_reports[report_script_name] || {};
}
setup_progress_bar() {