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:
Apollinaire 2018-04-27 18:40:48 +02:00
parent c4efabdd07
commit 1f67c9c29e

View file

@ -10,7 +10,7 @@ const FieldErrors = ({ errors }) => (
{error.message || (
<FormattedMessage
id={error.id}
values={{ ...error.data }}
values={{ ...error.data, ...error.properties }} //keep data for backwards compatibility ?
defaultMessage={JSON.stringify(error)}
/>
)}