fix(report-view): prevent error when all columns unselected in pick columns

This commit is contained in:
UmakanthKaspa 2025-09-25 06:14:01 +00:00
parent 9fdaf091c7
commit 5ca031bad2

View file

@ -1585,7 +1585,10 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
fields: this.get_dialog_fields(),
primary_action: (values) => {
// doctype fields
let fields = values[this.doctype].map((f) => [f, this.doctype]);
let fields = (values[this.doctype] || []).map((f) => [
f,
this.doctype,
]);
delete values[this.doctype];
// child table fields