diff --git a/packages/amis-editor-core/src/component/SubEditor.tsx b/packages/amis-editor-core/src/component/SubEditor.tsx index 859bb22e8..3b74c7e73 100644 --- a/packages/amis-editor-core/src/component/SubEditor.tsx +++ b/packages/amis-editor-core/src/component/SubEditor.tsx @@ -98,8 +98,8 @@ export class SubEditor extends React.Component { const {store, manager} = this.props; const subEditorContext = store.subEditorContext; const config = manager.config; - let superEditorData: any = store.superEditorData || null; - if (!store.isSubEditor && subEditorContext) { + let superEditorData: any = store.superEditorData; + if (!!subEditorContext) { superEditorData = createObject(store.superEditorData, subEditorContext?.data?.__super); } return {