fix: save fails for sidebar with nested items
This commit is contained in:
parent
e1bb478303
commit
7feb58a6b6
1 changed files with 3 additions and 0 deletions
|
|
@ -84,6 +84,9 @@ export class SidebarEditor {
|
|||
}
|
||||
prepare_data() {
|
||||
this.new_sidebar_items.forEach((item) => {
|
||||
if (item.parent) {
|
||||
delete item.parent;
|
||||
}
|
||||
if (!item.nested_items) return;
|
||||
item.nested_items.forEach((nested_item) => {
|
||||
if (nested_item.parent) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue