fix: 存在 curDocumentId 才存储组件

This commit is contained in:
liujuping.liujupin 2021-10-20 14:45:41 +08:00
parent 162a715dd8
commit e8e7010e7e

View File

@ -446,7 +446,9 @@ export function leafWrapper(Comp: types.IBaseRenderer, {
LeafWrapper.displayName = (Comp as any).displayName;
cache.component.set(schema.componentName, LeafWrapper);
if (curDocumentId) {
cache.component.set(schema.componentName, LeafWrapper);
}
return LeafWrapper;
}