fix: remove unnecessary code

This commit is contained in:
prssanna 2020-12-18 12:45:30 +05:30
parent cf5d8b1fc1
commit 49024e0774

View file

@ -31,7 +31,6 @@ frappe.views.DashboardView = class DashboardView extends frappe.views.ListView {
this.setup_dashboard_page();
this.setup_dashboard_customization();
this.make_dashboard();
this.setup_events();
}
setup_dashboard_customization() {
@ -126,11 +125,6 @@ frappe.views.DashboardView = class DashboardView extends frappe.views.ListView {
}
}
setup_events() {
$(document.body).on('toggleFullWidth', () => this.render_dashboard());
$(document.body).on('toggleListSidebar', () => this.render_dashboard());
}
fetch_dashboard_items(doctype, filters, obj_name) {
return frappe.db.get_list(doctype, {
filters: filters,