mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Fix field errors display
Added `error.properties` to follow fae7b5a032
.
Kept `error.data` for backwards compatibility, not sure that it's needed. If it is, it might be good to add it to FormErrors too
This commit is contained in:
parent
c4efabdd07
commit
1f67c9c29e
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ const FieldErrors = ({ errors }) => (
|
||||||
{error.message || (
|
{error.message || (
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id={error.id}
|
id={error.id}
|
||||||
values={{ ...error.data }}
|
values={{ ...error.data, ...error.properties }} //keep data for backwards compatibility ?
|
||||||
defaultMessage={JSON.stringify(error)}
|
defaultMessage={JSON.stringify(error)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Add table
Reference in a new issue