diff --git a/app/web/src/nova/ed/panel/popup/script/scope/map-exim.tsx b/app/web/src/nova/ed/panel/popup/script/scope/map-exim.tsx index 7e391411..5f215e9d 100644 --- a/app/web/src/nova/ed/panel/popup/script/scope/map-exim.tsx +++ b/app/web/src/nova/ed/panel/popup/script/scope/map-exim.tsx @@ -10,15 +10,17 @@ export const scopeMapExportImport = (p: PG, meta: IMeta, parents: IMeta[]) => { for (const m of parents) { next_parent = parents[i + 1]; - // if (active.comp_id && m.parent?.id === "root" && active.instance) { - // const meta = p.page.meta[active.instance.item_id]; - // if (meta) { - // if (!m.scope.def) m.scope.def = {}; - // m.scope.def.props = { ...m.scope.def.props, ...meta.scope?.def?.props }; - // } - // } + let def = m.scope.def; + + if (active.comp_id && m.parent?.id === "root" && active.instance) { + const meta = p.page.meta[active.instance.item_id]; + if (meta) { + if (!m.scope.def) m.scope.def = {}; + def = m.scope.def; + def.props = { ...m.scope.def.props, ...meta.scope?.def?.props }; + } + } - const def = m.scope.def; if (def) { const ex = extractExportImport(p, m, imports); if (next_parent) {