From 723ed06ffb0082a14f2806cdb16a3fa7f863c0ea Mon Sep 17 00:00:00 2001 From: Hussain Nagaria Date: Fri, 13 Mar 2026 06:29:38 +0530 Subject: [PATCH] fix: show empty section breaks in edit mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * else how will we add the first child 😅 --- frappe/public/js/frappe/ui/sidebar/sidebar_item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/ui/sidebar/sidebar_item.js b/frappe/public/js/frappe/ui/sidebar/sidebar_item.js index 9267ab8740..9d74add3a3 100644 --- a/frappe/public/js/frappe/ui/sidebar/sidebar_item.js +++ b/frappe/public/js/frappe/ui/sidebar/sidebar_item.js @@ -185,7 +185,7 @@ frappe.ui.sidebar_item.TypeSectionBreak = class SectionBreakSidebarItem extends this.full_template = $(this.wrapper); } make() { - if (this.nested_items.length == 0) { + if (this.nested_items.length == 0 && !frappe.app.sidebar.editor.edit_mode) { return; } super.make();