mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
feedback fix
This commit is contained in:
parent
e09a287f30
commit
405fb6897a
@ -80,9 +80,9 @@ const Component = ({
|
||||
const formErrorsKeys = Object.keys(formErrors);
|
||||
|
||||
const fieldsErrors = formErrorsKeys.filter(errorKey => {
|
||||
const errorKeysArray = errorKey.split('.').filter((_, index) => index < 2);
|
||||
const errorKeysArray = errorKey.split('.');
|
||||
|
||||
if (errorKeysArray.join('.') === `${name}.${index}`) {
|
||||
if (`${errorKeysArray[0]}.${errorKeysArray[1]}` === `${name}.${index}`) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user