fix: Return empty object if there are no settings for a report
Query reports does not have settings.
This commit is contained in:
parent
ec53a57f4b
commit
e2986d343a
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue