fix schema modals

This commit is contained in:
dswbx
2025-07-07 16:38:39 +02:00
parent 88ec3432a0
commit ea46dc8df0
4 changed files with 7 additions and 11 deletions
@@ -23,7 +23,7 @@ export class JsonvTsValidator<T = any, S extends StrictRJSFSchema = RJSFSchema>
return { errors: [], validationError: null as any };
}
const jsSchema = s.fromSchema(schema as any);
const jsSchema = s.fromSchema(JSON.parse(JSON.stringify(schema)) as any);
const result = jsSchema.validate(formData);
if (result.valid) {