Skip to content

Commit

Permalink
Backport PR jupyterlab#15464: Fix FormComponent showing error indic…
Browse files Browse the repository at this point in the history
…ators in all fields when using a `customValidate` function
  • Loading branch information
mmichilot authored and meeseeksmachine committed Dec 12, 2023
1 parent 1b68653 commit 4844559
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 4844559

Please sign in to comment.