minor fix in use of reduce (#5825)
This commit is contained in:
parent
753d542f71
commit
be38795f8d
1 changed files with 1 additions and 1 deletions
|
|
@ -710,7 +710,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
Object.defineProperty(frappe, 'query_report_filters_by_name', {
|
||||
get() {
|
||||
if (!frappe.query_report.filters) return null;
|
||||
return frappe.query_report.filters.reduce((f, acc) => {
|
||||
return frappe.query_report.filters.reduce((acc, f) => {
|
||||
acc[f.df.fieldname] = f;
|
||||
return acc;
|
||||
}, {});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue