mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 16:16:02 +00:00
fix schema modals
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user