Added missing key attribute to <option/>

This commit is contained in:
orangemug 2018-10-06 14:44:12 +01:00
parent 1525807d06
commit 4134919dde

View file

@ -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>
); );