mirror of
https://github.com/franjsco/tick3t
synced 2024-12-28 18:29:56 +01:00
improvement: check props
This commit is contained in:
parent
a552c67602
commit
93a6c0acef
@ -4,9 +4,12 @@ import { Input } from 'reactstrap';
|
|||||||
|
|
||||||
const DropDown = (props) => {
|
const DropDown = (props) => {
|
||||||
let options = props.options;
|
let options = props.options;
|
||||||
|
if (options) {
|
||||||
options = options.map((opt) => {
|
options = options.map((opt) => {
|
||||||
return <option key={opt.name} value={opt.name}>{opt.value}</option>
|
return <option key={opt.name} value={opt.name}>{opt.value}</option>
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Input
|
<Input
|
||||||
|
Loading…
Reference in New Issue
Block a user