From 1476219146fd521a92bb658d5a1ae08a01f5c5b5 Mon Sep 17 00:00:00 2001 From: Kaushal Shriwas Date: Wed, 11 Feb 2026 12:47:20 +0530 Subject: [PATCH] fix: remove cleanup_filters that pops last chart filter --- frappe/public/js/frappe/utils/dashboard_utils.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/frappe/public/js/frappe/utils/dashboard_utils.js b/frappe/public/js/frappe/utils/dashboard_utils.js index b9654c741e..46059db89e 100644 --- a/frappe/public/js/frappe/utils/dashboard_utils.js +++ b/frappe/public/js/frappe/utils/dashboard_utils.js @@ -208,7 +208,7 @@ frappe.dashboard_utils = { : null; if (!dynamic_filters || !Object.keys(dynamic_filters).length) { - return this.cleanup_filters(filters); + return filters; } if (Array.isArray(dynamic_filters)) { @@ -232,13 +232,6 @@ frappe.dashboard_utils = { Object.assign(filters, dynamic_filters); } - return this.cleanup_filters(filters); - }, - cleanup_filters(filters) { - if (filters.length && filters[0].length == 5) { - filters.pop(); - return filters; - } return filters; }, get_dashboard_link_field() {