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