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 5109100 commit 9f1c63bCopy full SHA for 9f1c63b
packages/vee-validate/src/useForm.ts
@@ -83,7 +83,7 @@ function resolveInitialValues<TValues extends GenericFormValues = GenericFormVal
83
): TValues {
84
const providedValues = unref(opts?.initialValues) || {};
85
if (opts?.validationSchema && isTypedSchema(opts.validationSchema) && isCallable(opts.validationSchema.cast)) {
86
- return deepCopy(opts.validationSchema.cast(providedValues));
+ return deepCopy(opts.validationSchema.cast(providedValues) || {});
87
}
88
89
return deepCopy(providedValues) as TValues;
0 commit comments