We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f9d0ab commit c6885c5Copy full SHA for c6885c5
client/src/components/formHelpers/form.tsx
@@ -47,11 +47,15 @@ function DynamicForm({
47
submit(formatUrlValues(values, options), ...args);
48
}}
49
validate={(values: URLValues) => {
50
- const hasMissingRequiredFields = options.required?.some((field: string) => !values[field]);
+ const hasMissingRequiredFields = options.required?.some(
51
+ (field: string) => !values[field]
52
+ );
53
- return hasMissingRequiredFields ? {
- [FORM_ERROR]: hasMissingRequiredFields,
54
- } : undefined
+ return hasMissingRequiredFields
55
+ ? {
56
+ [FORM_ERROR]: hasMissingRequiredFields
57
+ }
58
+ : undefined;
59
60
>
61
{({ handleSubmit, pristine, error }) => (
0 commit comments