From 2b35df4c1fdcb23c955d4a0ae2b3f4495a7ffee2 Mon Sep 17 00:00:00 2001 From: pianruijie Date: Thu, 28 Jul 2022 17:50:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=BC=B9=E6=A1=86=E9=87=8C?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=BC=B9=E7=AA=97=E7=BB=A7=E7=BB=AD=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8f7a2ffb54b8adbaa46ee11c1c8ef092cb138e77 --- packages/amis-editor-core/src/component/SubEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {