fix: show empty section breaks in edit mode

* else how will we add the first child 😅
This commit is contained in:
Hussain Nagaria 2026-03-13 06:29:38 +05:30
parent fbe4691d56
commit 723ed06ffb

View file

@ -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();