From da08c50e341a648fa64719f3ad4e047eddd116e8 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 7 Dec 2020 15:06:21 +0530 Subject: [PATCH] fix: utils path --- frappe/public/js/frappe/views/reports/query_report.js | 2 +- frappe/public/js/frappe/widgets/chart_widget.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/views/reports/query_report.js b/frappe/public/js/frappe/views/reports/query_report.js index 9043ffecac..36ce8bfa61 100644 --- a/frappe/public/js/frappe/views/reports/query_report.js +++ b/frappe/public/js/frappe/views/reports/query_report.js @@ -648,7 +648,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList { render_summary(data) { data.forEach((summary) => { - frappe.widget.utils.build_summary_item(summary).appendTo(this.$summary); + frappe.utils.build_summary_item(summary).appendTo(this.$summary); }) this.$summary.show(); diff --git a/frappe/public/js/frappe/widgets/chart_widget.js b/frappe/public/js/frappe/widgets/chart_widget.js index 04477197ce..f9a60916d9 100644 --- a/frappe/public/js/frappe/widgets/chart_widget.js +++ b/frappe/public/js/frappe/widgets/chart_widget.js @@ -83,7 +83,7 @@ export default class ChartWidget extends Widget { } this.summary.forEach(summary => { - frappe.widget.utils.build_summary_item(summary).appendTo(this.$summary); + frappe.utils.build_summary_item(summary).appendTo(this.$summary); }); this.summary.length && this.$summary.show(); }