Fixed lint error.

This commit is contained in:
orangemug 2020-02-25 09:25:52 +00:00
parent 1b3d8b5b79
commit a5b226d9f3

View file

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