From 0adcdcd699ea17d228eaa89a77b45ae20d208414 Mon Sep 17 00:00:00 2001 From: Rizky Date: Sun, 17 Mar 2024 16:07:51 +0700 Subject: [PATCH] wip fix --- app/web/src/nova/ed/logic/ed-route.ts | 1 - app/web/src/nova/ed/panel/popup/script/scope/scope.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/web/src/nova/ed/logic/ed-route.ts b/app/web/src/nova/ed/logic/ed-route.ts index 1586f31d..bbeeed0e 100644 --- a/app/web/src/nova/ed/logic/ed-route.ts +++ b/app/web/src/nova/ed/logic/ed-route.ts @@ -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); diff --git a/app/web/src/nova/ed/panel/popup/script/scope/scope.tsx b/app/web/src/nova/ed/panel/popup/script/scope/scope.tsx index a49f45b6..32f4df7e 100644 --- a/app/web/src/nova/ed/panel/popup/script/scope/scope.tsx +++ b/app/web/src/nova/ed/panel/popup/script/scope/scope.tsx @@ -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,