fix: show empty section breaks in edit mode
* else how will we add the first child 😅
This commit is contained in:
parent
fbe4691d56
commit
723ed06ffb
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue