Merge pull request #13510 from netchampfaris/throttle-set-open-count

fix: Throttle set_open_count
This commit is contained in:
mergify[bot] 2021-06-16 13:52:06 +00:00 committed by GitHub
commit f4be870e58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ frappe.ui.form.Dashboard = class FormDashboard {
constructor(opts) {
$.extend(this, opts);
this.setup_dashboard_sections();
this.set_open_count = frappe.utils.throttle(this.set_open_count, 500);
}
setup_dashboard_sections() {