From 3cb9e188e81f28416c331e97f5f1661942d013a2 Mon Sep 17 00:00:00 2001 From: wisonic-s <51065359+wisonic-s@users.noreply.github.com> Date: Thu, 17 Apr 2025 18:39:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE=E5=87=BA?= =?UTF-8?q?=E9=94=99=E4=B9=8B=E5=90=8E=E6=B2=A1=E6=9C=89=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=20(#15877)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/CalculateFields.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/utils/CalculateFields.ts b/core/core-frontend/src/utils/CalculateFields.ts index 0daece9ea7..01e0ac6e23 100644 --- a/core/core-frontend/src/utils/CalculateFields.ts +++ b/core/core-frontend/src/utils/CalculateFields.ts @@ -18,13 +18,13 @@ const originNameHandleBack = (arr = []) => { const originNameHandleWithArr = (obj = {}, fields) => { fields.forEach(ele => { - originNameHandle(obj[ele]) + originNameHandle(obj?.[ele] || []) }) } const originNameHandleBackWithArr = (obj = {}, fields) => { fields.forEach(ele => { - originNameHandleBack(obj[ele]) + originNameHandleBack(obj?.[ele] || []) }) }