Skip to content

Commit

Permalink
hide empty help label in antd form items
Browse files Browse the repository at this point in the history
  • Loading branch information
momesana committed Mar 25, 2022
1 parent 6063bce commit 3a4ef83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/antd/src/templates/FieldTemplate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 3a4ef83

Please sign in to comment.