From e21765e2741d5634fb2f1597f2b5c64ac88183ef Mon Sep 17 00:00:00 2001 From: sokumon Date: Tue, 2 Dec 2025 11:24:08 +0530 Subject: [PATCH] fix: render standard section once --- frappe/public/js/frappe/ui/sidebar/sidebar.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frappe/public/js/frappe/ui/sidebar/sidebar.js b/frappe/public/js/frappe/ui/sidebar/sidebar.js index 1eb218ccd5..445744da2a 100644 --- a/frappe/public/js/frappe/ui/sidebar/sidebar.js +++ b/frappe/public/js/frappe/ui/sidebar/sidebar.js @@ -21,6 +21,7 @@ frappe.ui.Sidebar = class Sidebar { this.setup_events(); this.sidebar_module_map = {}; this.build_sidebar_module_map(); + this.standard_items_setup = false; } prepare() { @@ -228,6 +229,7 @@ frappe.ui.Sidebar = class Sidebar { this.handle_outside_click(); } add_standard_items(items) { + if (this.standard_items_setup) return; this.standard_items = [ { label: "Search", @@ -240,6 +242,7 @@ frappe.ui.Sidebar = class Sidebar { this.add_item(this.$standard_items_sections, w); }); this.setup_awesomebar(); + this.standard_items_setup = true; } setup_awesomebar() { if (frappe.boot.desk_settings.search_bar) {