From 6e777179462774590a79e7ef2df39a3b041e98ee Mon Sep 17 00:00:00 2001 From: wjh Date: Thu, 14 Mar 2024 19:32:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=B1=87=E6=80=BB?= =?UTF-8?q?=E5=8C=BA=E5=9D=97NaN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin-core/src/client/schema-components/GroupBlock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-components/GroupBlock.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-components/GroupBlock.tsx index 1880ed6fd..5ae0b435d 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-components/GroupBlock.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-components/GroupBlock.tsx @@ -59,7 +59,7 @@ export const GroupBlock = (props) => { if (service.loading && !field.loaded) { return ; } - const data = service.data?.data[0] ?? {}; + const data = service.data?.data[0] ? { ...service.data?.data[0] } : {}; params?.config?.measures?.forEach((measuresItem) => { const value = measuresItem.fieldFormat.fieldValue;