diff --git a/frappe/public/js/frappe/views/reports/query_report.js b/frappe/public/js/frappe/views/reports/query_report.js index c8f664d681..04f5664070 100644 --- a/frappe/public/js/frappe/views/reports/query_report.js +++ b/frappe/public/js/frappe/views/reports/query_report.js @@ -562,16 +562,16 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList { fieldname: 'y_field', label: 'Y Field', fieldtype: 'Select', - options: numeric_fields, - default: numeric_fields[0], + options: numeric_fields.map((opt) => opt.options), + default: numeric_fields.map((opt) => opt.options)[0], onchange: preview_chart }, { fieldname: 'x_field', label: 'X Field', fieldtype: 'Select', - options: non_numeric_fields, - default: non_numeric_fields[0], + options: non_numeric_fields.map((opt) => opt.options), + default: non_numeric_fields.map((opt) => opt.options)[0], onchange: preview_chart }, {