Skip to content

Commit

Permalink
fix(rjsf-team#3233): fix rendering 0 when there are no errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
suyanhanx committed Nov 8, 2022
1 parent 651bc02 commit 62bd57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/antd/src/templates/FieldTemplate/index.tsx
Expand Up @@ -69,7 +69,7 @@ const FieldTemplate = ({
colon={colon}
extra={rawDescription && description}
hasFeedback={schema.type !== "array" && schema.type !== "object"}
help={(!!rawHelp && help) || (rawErrors?.length && errors)}
help={(!!rawHelp && help) || (rawErrors?.length ? errors : undefined)}
htmlFor={id}
label={displayLabel && label}
labelCol={labelCol}
Expand Down

0 comments on commit 62bd57b

Please sign in to comment.