fix
This commit is contained in:
parent
ddbe91f17a
commit
2d228cf2f7
|
|
@ -107,6 +107,7 @@ export const LiveGlobal = {
|
|||
}>(),
|
||||
treePending: null as null | Promise<void>,
|
||||
treeMeta: {} as Record<string, ItemMeta>,
|
||||
cachedParentID: {} as Record<string, string>,
|
||||
portal: {} as Record<string, { el?: ReactNode; render: () => void }>,
|
||||
comps: {
|
||||
pending: {} as Record<string, Promise<PRASI_COMPONENT>>,
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ const walk = async (
|
|||
|
||||
const meta: ItemMeta = {
|
||||
item,
|
||||
parent_id: val.parent_id,
|
||||
parent_id: p.cachedParentID[item.id] || val.parent_id,
|
||||
parent_comp: val.parent_comp as any,
|
||||
className: produceCSS(item, {
|
||||
mode: p.mode,
|
||||
|
|
|
|||
|
|
@ -77,6 +77,8 @@ export const treePropEval = (
|
|||
const meta = p.treeMeta[prop.content.id];
|
||||
if (meta) {
|
||||
meta.parent_id = parent_id;
|
||||
p.cachedParentID[prop.content.id] = parent_id;
|
||||
|
||||
return (
|
||||
<LItem
|
||||
id={prop.content.id}
|
||||
|
|
|
|||
Loading…
Reference in New Issue