From 4c0121a2dcac4cfe6971658a27bb04797e396052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Thu, 14 Aug 2025 14:32:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E5=9C=BA=E6=99=AF=E6=94=BE?= =?UTF-8?q?=E5=A4=A7=E7=BC=A9=E5=B0=8F=E6=8C=89=E9=92=AE=E6=97=A0=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#16717)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/changeComponentsSizeWithScale.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-frontend/src/utils/changeComponentsSizeWithScale.ts b/core/core-frontend/src/utils/changeComponentsSizeWithScale.ts index f45e531f73..4a853f1f37 100644 --- a/core/core-frontend/src/utils/changeComponentsSizeWithScale.ts +++ b/core/core-frontend/src/utils/changeComponentsSizeWithScale.ts @@ -31,6 +31,9 @@ export function changeSizeWithScale(scale) { } function changeComponentsSizeWithScaleCircle(componentDataCopy, scale) { + if (!componentDataCopy || !Array.isArray(componentDataCopy)) { + return + } componentDataCopy?.forEach(component => { Object.keys(component.style).forEach(key => { if (needToChangeDirectionAttrs.width.includes(key)) {