mirror of
https://github.com/maputnik/editor.git
synced 2026-07-25 23:37:27 +00:00
Can't use object as react-dom key.
This commit is contained in:
@@ -75,8 +75,8 @@ class InputBlock extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
{errors.length > 0 &&
|
{errors.length > 0 &&
|
||||||
<div className="maputnik-inline-error">
|
<div className="maputnik-inline-error">
|
||||||
{[].concat(this.props.error).map(error => {
|
{[].concat(this.props.error).map((error, idx) => {
|
||||||
return <div key={error}>{error.message}</div>
|
return <div key={idx}>{error.message}</div>
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user