Skip to content

Commit

Permalink
Fix error indicators showing with customValidate (#15464)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmichilot committed Dec 12, 2023
1 parent 1c2741f commit 2dc294c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui-components/src/components/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ const CustomTemplateFactory = (options: FormComponent.ILabCustomizerProps) =>
}`}
>
{!hasCustomField &&
(rawErrors ? (
(rawErrors?.length ? (
// Shows a red indicator for fields that have validation errors
<div className="jp-modifiedIndicator jp-errorIndicator" />
) : (
Expand Down

0 comments on commit 2dc294c

Please sign in to comment.