fix: Enable set_open_count

perf: move set_open_count to after_refresh to avoid unnecessary calls
This commit is contained in:
Suraj Shetty 2021-07-07 22:39:12 +05:30
parent d25252b1e1
commit ee75cea4fe

View file

@ -5,7 +5,6 @@ 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() {
@ -179,7 +178,6 @@ frappe.ui.form.Dashboard = class FormDashboard {
return;
}
this.render_links();
// this.set_open_count();
show = true;
}
@ -206,6 +204,7 @@ frappe.ui.form.Dashboard = class FormDashboard {
$(this).removeClass('hidden');
}
});
this.set_open_count();
}
init_data() {