From cb4de7f9d0f4ca23a915571099f3de50a5c4671a Mon Sep 17 00:00:00 2001 From: "Mr.L" Date: Sat, 20 Jan 2024 11:45:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=83=A8=E5=88=86=E5=8D=B8?= =?UTF-8?q?=E8=BD=BD=E6=83=85=E5=86=B5=E4=B8=8B=E6=97=A0=E6=B3=95=E6=89=BE?= =?UTF-8?q?=E5=88=B0=E5=90=8E=E7=BB=AD=E8=A1=A8=E5=8D=95=E9=A1=B9=E6=96=B9?= =?UTF-8?q?=E6=B3=95=20(#2675)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/hooks/useInstance.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/form/hooks/useInstance.tsx b/src/form/hooks/useInstance.tsx index 74123687c9..dad02a7abc 100644 --- a/src/form/hooks/useInstance.tsx +++ b/src/form/hooks/useInstance.tsx @@ -107,7 +107,7 @@ export default function useInstance(props: TdFormProps, formRef, formMapRef: Rea if (!name) return null; const formItemRef = getMapValue(name, formMapRef); - return formItemRef?.current.getValue?.(); + return formItemRef?.current?.getValue?.(); } // 对外方法,获取一组字段名对应的值,当调用 getFieldsValue(true) 时返回所有值