From 7c16a35fdabe5f779dba67328f7ffbb280c0ae00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 18 Sep 2026 20:14:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E7=BC=BA=E5=B0=91=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E9=87=8F=E7=9A=84=E9=A2=84=E8=A7=88=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=20=E6=A0=A1=E9=AA=8C=20offset=20=E5=89=8D?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E5=A4=84=E7=90=86=E6=97=A7=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=92=8C=E6=B5=8B=E8=AF=95=E5=A4=B9=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/ui-editor/components/preview/PreviewWorkspace.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx index 95e8faf50..049d7735a 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx @@ -134,9 +134,9 @@ export function PreviewWorkspace({ image, width, height, - validOffset: item.root.offset.min.every((value) => - Number.isFinite(value), - ), + validOffset: + item.root.offset?.min?.every((value) => Number.isFinite(value)) ?? + false, }; }), [images, uiTrees],