mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 15:11:16 +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>
|
</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>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue