From e41e71a6af62f9b3af38992b643b82f586a3e23d Mon Sep 17 00:00:00 2001 From: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:56:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=AD=E7=9A=84=E8=84=8F=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-theme-editor-helper/src/helper/ParseThemeData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amis-theme-editor-helper/src/helper/ParseThemeData.ts b/packages/amis-theme-editor-helper/src/helper/ParseThemeData.ts index a02854a2627..77a6e9f3f9a 100644 --- a/packages/amis-theme-editor-helper/src/helper/ParseThemeData.ts +++ b/packages/amis-theme-editor-helper/src/helper/ParseThemeData.ts @@ -282,7 +282,7 @@ export class ParseThemeData { // 解析组件通用方法 parseComponentCommon(component: any) { - if (component.token) { + if (component.token && component.body) { // 有token时结束递归 const token = component.token; for (let key in component.body) {