fix: Enable set_open_count
perf: move set_open_count to after_refresh to avoid unnecessary calls
This commit is contained in:
parent
d25252b1e1
commit
ee75cea4fe
1 changed files with 1 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue