Skip to content

Commit 41d63be

Browse files
committed
remove commented code
1 parent 07112a7 commit 41d63be

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

next/src/form.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ function validationErrorsToFormErrors(errors: ValidationErrorWithMessage[], _val
103103
if (cleanedPath[1] === 'items' && typeof cleanedPath[2] === 'number') {
104104
const [arrayName, _, arrayIndex] = cleanedPath
105105

106-
// const arrayName = cleanedPath[0] as string
107106
if (!(arrayName in result) || typeof result[arrayName] === 'string') {
108107
result[arrayName] = [] as Array<null | FormErrors>
109108
}

0 commit comments

Comments
 (0)