fix: dashboard chart source bug

This commit is contained in:
prssanna 2020-02-24 18:54:52 +05:30
parent 67b1a9999a
commit 9fa0424e22

View file

@ -48,7 +48,7 @@ frappe.dashboard_utils = {
name: chart.source
}).then(config => {
frappe.dom.eval(config);
return frappe.dashboards.chart_sources[frm.doc.source].filters;
return frappe.dashboards.chart_sources[chart.source].filters;
});
} else if (chart.chart_type === 'Report') {
return frappe.report_utils.get_report_filters(chart.report_name).then(filters => {