Skip to content

Commit 6d8e5f9

Browse files
committed
Needed to remove multiple id check in findValidationForms.
If an id is set on the client when instantiating superForm, the error message will be a false positive.
1 parent a30daaf commit 6d8e5f9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/lib/client/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -397,16 +397,6 @@ export function superForm<
397397
const forms = Object.values(data).filter(
398398
(v) => Context_isValidationObject(v) !== false
399399
) as SuperValidated<AnyZodObject>[];
400-
if (forms.length > 1 && options.warnings?.duplicateId !== false) {
401-
const duplicateId = new Set<string | undefined>();
402-
for (const form of forms) {
403-
if (duplicateId.has(form.id)) {
404-
console.warn(multipleFormIdError(form.id));
405-
} else {
406-
duplicateId.add(form.id);
407-
}
408-
}
409-
}
410400
return forms;
411401
}
412402

0 commit comments

Comments
 (0)