mirror of
https://github.com/maputnik/editor.git
synced 2026-01-04 12:30:00 +00:00
Added missing key attribute to <option/>
This commit is contained in:
@@ -216,7 +216,7 @@ export default class Toolbar extends React.Component {
|
|||||||
<select onChange={(e) => this.handleSelection(e.target.value)}>
|
<select onChange={(e) => this.handleSelection(e.target.value)}>
|
||||||
{views.map((item) => {
|
{views.map((item) => {
|
||||||
return (
|
return (
|
||||||
<option value={item.id}>
|
<option key={item.id} value={item.id}>
|
||||||
{item.title}
|
{item.title}
|
||||||
</option>
|
</option>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user