Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be4de6a

Browse files
committed
Return error
1 parent 4b47137 commit be4de6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/util/formUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const getFormHelpers =
4242
): FormHelpers => {
4343
const apiValidationErrors = isApiValidationError(error)
4444
? (mapApiErrorToFieldErrors(error.response.data) as FormikErrors<T>)
45-
: undefined
45+
: error
4646

4747
if (typeof name !== "string") {
4848
throw new Error(

0 commit comments

Comments
 (0)