Can't use object as react-dom key.

This commit is contained in:
orangemug 2020-02-25 09:27:29 +00:00
parent a5b226d9f3
commit be7642976b

View file

@ -75,8 +75,8 @@ class InputBlock extends React.Component {
</div>
{errors.length > 0 &&
<div className="maputnik-inline-error">
{[].concat(this.props.error).map(error => {
return <div key={error}>{error.message}</div>
{[].concat(this.props.error).map((error, idx) => {
return <div key={idx}>{error.message}</div>
})}
</div>
}