diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js index 07055482b2..1e246dc637 100644 --- a/frappe/public/js/frappe/list/list_view.js +++ b/frappe/public/js/frappe/list/list_view.js @@ -124,14 +124,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { const actions = this.actions_menu_items.concat(this.workflow_action_menu_items); actions.map(item => { - let action = () => { - frappe.run_serially([ - this.toggle_auto_refresh(false), - item.action, - this.toggle_auto_refresh(true) - ]); - } - const $item = this.page.add_actions_menu_item(item.label, action, item.standard); + const $item = this.page.add_actions_menu_item(item.label, item.action, item.standard); if (item.class) { $item.addClass(item.class); } @@ -142,10 +135,6 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { }); } - toggle_auto_refresh(state) { - this.list_view_settings.disable_auto_refresh = !state; - } - show_restricted_list_indicator_if_applicable() { const match_rules_list = frappe.perm.get_match_rules(this.doctype); if(match_rules_list.length) {