mirror of
https://github.com/franjsco/tick3t
synced 2025-06-05 22:19:18 +02:00
improvement: add key into option (map)
This commit is contained in:
@@ -12,9 +12,8 @@ class DropDown extends Component {
|
|||||||
render() {
|
render() {
|
||||||
let options = this.props.options;
|
let options = this.props.options;
|
||||||
options = options.map((opt) => {
|
options = options.map((opt) => {
|
||||||
return <option key={opt.id} value={opt.id}>{opt.value}</option>
|
return <option key={opt.name} value={opt.name}>{opt.value}</option>
|
||||||
});
|
});
|
||||||
console.log('reh');
|
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<Input
|
<Input
|
||||||
|
Reference in New Issue
Block a user