From 6082118758c7a50ea7bf9e5793137232ebb74b92 Mon Sep 17 00:00:00 2001 From: momesana Date: Fri, 25 Mar 2022 03:39:50 +0100 Subject: [PATCH] hide empty help label in antd form items --- packages/antd/src/templates/FieldTemplate/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/antd/src/templates/FieldTemplate/index.js b/packages/antd/src/templates/FieldTemplate/index.js index 93bdd6fc46..568a7c6784 100644 --- a/packages/antd/src/templates/FieldTemplate/index.js +++ b/packages/antd/src/templates/FieldTemplate/index.js @@ -65,7 +65,7 @@ const FieldTemplate = ({ colon={colon} extra={description} hasFeedback={schema.type !== 'array' && schema.type !== 'object'} - help={(!!rawHelp && help) || (!!rawErrors && renderFieldErrors())} + help={rawHelp ? help : rawErrors ? randerFieldErrors() : undefined} htmlFor={id} label={displayLabel && label} labelCol={labelCol}