From 678e13c1594e0bab4ec412756ccdbd85e289681a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=9B=E7=9A=93?= Date: Fri, 7 May 2021 16:59:33 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/src/document/node/props/prop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/designer/src/document/node/props/prop.ts b/packages/designer/src/document/node/props/prop.ts index 225657f78..eb882240f 100644 --- a/packages/designer/src/document/node/props/prop.ts +++ b/packages/designer/src/document/node/props/prop.ts @@ -101,7 +101,7 @@ export class Prop implements IPropParent { const type = this._type; if (stage === TransformStage.Render && this.key === '___condition___') { // 在设计器里,所有组件默认需要展示,除非开启了 enableCondition 配置 - if (engineConfig.get('enableCondition') !== true) { + if (engineConfig?.get('enableCondition') !== true) { return true; } return this._value;