mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 08:25:24 +01:00
Can't use object as react-dom key.
This commit is contained in:
parent
a5b226d9f3
commit
be7642976b
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue