INFRA-3344 | Abhishek | Add console.log statements for debugging

This commit is contained in:
Abhishek Katiyar
2024-05-29 17:02:09 +05:30
parent 562415292c
commit d7f3eb417e

View File

@@ -165,10 +165,14 @@ const BaseForm = (props: BaseFormProps) => {
preChangeManifest,
);
let errors = {};
let v = {};
try {
await validateYupSchema(value, manifestValidationSchema, false, value);
v = await validateYupSchema(value, manifestValidationSchema, false, value);
setHaveValidationError(false);
} catch (err) {
console.log('v: ', v);
console.log(err);
console.log(yupToFormErrors(err));
setHaveValidationError(true);
errors = yupToFormErrors(err); //for rendering validation errors
} finally {