reset formErrors on header delete

This commit is contained in:
Virginie Ky 2020-01-09 22:54:37 +01:00
parent 50a9192599
commit 177fdb6c5d
2 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,7 @@ function EditView() {
index,
event,
});
resetError('headers');
};
const handleSubmit = e => {

View File

@ -1,5 +1,6 @@
import * as yup from 'yup';
// TODO - Translation
const translatedErrors = {
required: 'This value is required',
regex: 'This does not match the format',