setchilds fix
This commit is contained in:
parent
fb36818cd7
commit
e06490e967
File diff suppressed because one or more lines are too long
|
|
@ -187,6 +187,8 @@ export const devItem = (
|
|||
item[k] = v;
|
||||
}
|
||||
} else if (c.type === "child" && Array.isArray(c.childs)) {
|
||||
console.log("faisol", c.childs);
|
||||
|
||||
if (item.component?.id) {
|
||||
if (!item.component.props) {
|
||||
item.component.props = {};
|
||||
|
|
@ -198,12 +200,10 @@ export const devItem = (
|
|||
type: "item",
|
||||
id: createId(),
|
||||
name: "child",
|
||||
childs: [
|
||||
removeEditFromChilds(
|
||||
c.childs.filter((e) => e),
|
||||
compile
|
||||
)[0],
|
||||
],
|
||||
childs: removeEditFromChilds(
|
||||
c.childs.filter((e) => e),
|
||||
compile
|
||||
),
|
||||
},
|
||||
};
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue