This commit is contained in:
Rizky 2024-03-17 16:07:51 +07:00
parent 7a5822433d
commit 0adcdcd699
2 changed files with 1 additions and 2 deletions

View File

@ -147,7 +147,6 @@ export const reloadPage = async (
}
if (remotePage.comps) {
console.log("page comps", remotePage.comps);
for (const [id_comp, c] of Object.entries(remotePage.comps)) {
if (c && c.snapshot) {
await loadCompSnapshot(p, id_comp, c.snapshot);

View File

@ -80,7 +80,7 @@ const map_childs = (
paths.push([...(curpath || []), meta]);
if (meta.item.component?.id && meta.item.component?.props) {
for (const [name, prop] of Object.entries(meta.item.component.props)) {
if (prop.meta?.type === "content-element" && prop.content) {
if (prop.content) {
map_childs(monaco, p, metas, [prop.content], paths, [
...(curpath || []),
meta,