mirror of
https://github.com/strapi/strapi.git
synced 2025-12-06 03:52:38 +00:00
reset formErrors on header delete
This commit is contained in:
parent
50a9192599
commit
177fdb6c5d
@ -210,6 +210,7 @@ function EditView() {
|
|||||||
index,
|
index,
|
||||||
event,
|
event,
|
||||||
});
|
});
|
||||||
|
resetError('headers');
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSubmit = e => {
|
const handleSubmit = e => {
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
|
|
||||||
|
// TODO - Translation
|
||||||
const translatedErrors = {
|
const translatedErrors = {
|
||||||
required: 'This value is required',
|
required: 'This value is required',
|
||||||
regex: 'This does not match the format',
|
regex: 'This does not match the format',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user