From 931d60ee07716420f8198fabcdbc46a2b9a500aa Mon Sep 17 00:00:00 2001 From: hsm-lv <80095014+hsm-lv@users.noreply.github.com> Date: Fri, 14 Jul 2023 11:07:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:schemaApi=E5=9C=A8=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=99=A8=E8=AE=BE=E8=AE=A1=E6=80=81=E6=8A=A5=E9=94=99=20(#7474?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor-core/src/component/factory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amis-editor-core/src/component/factory.tsx b/packages/amis-editor-core/src/component/factory.tsx index 14dbbffd5..1363897d0 100644 --- a/packages/amis-editor-core/src/component/factory.tsx +++ b/packages/amis-editor-core/src/component/factory.tsx @@ -164,7 +164,7 @@ export function makeWrapper( const {render} = this.props; // render: amis渲染器 // $$id 变化,渲染器最好也变化 - if (node.$$id) { + if (node?.$$id) { props = props || {}; // props 可能为 undefined props.key = node.$$id || props.key; }