fix:schemaApi在设计器设计态报错 (#7474)

This commit is contained in:
hsm-lv 2023-07-14 11:07:07 +08:00 committed by GitHub
parent cabeb0ec3d
commit 931d60ee07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}