INFRA-3344 | Abhishek | Add console.log statements for debugging
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user