mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
Merge pull request #2162 from Neobii/newArrayValidationMessage
fixed nested array field error
This commit is contained in:
commit
283320c754
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@ const FormError = ({ error, errorContext, getLabel }) => {
|
|||
if (error.message) {
|
||||
return error.message;
|
||||
}
|
||||
// in case this is a nested fields, only keep last segment of path
|
||||
const errorName = error.properties.name.split('.').slice(-1)[0];
|
||||
return (
|
||||
<FormattedMessage
|
||||
id={error.id}
|
||||
|
|
Loading…
Add table
Reference in a new issue