diff --git a/frappe/public/js/frappe/views/reports/query_report.js b/frappe/public/js/frappe/views/reports/query_report.js index 7e0bc14a13..ceb0a696bb 100644 --- a/frappe/public/js/frappe/views/reports/query_report.js +++ b/frappe/public/js/frappe/views/reports/query_report.js @@ -364,6 +364,16 @@ frappe.views.QueryReport = Class.extend({ } }, refresh: function() { + // throttle + // stop refresh from being called multiple times (from triggers ?) + if (!this.request_refresh) { + this.request_refresh = setTimeout(() => { + this._refresh(); + this.request_refresh = null; + }, 300); + } + }, + _refresh: function() { // Run var me = this;