We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02a47f1 commit d4c7b41Copy full SHA for d4c7b41
1 file changed
src/components/Select2.js
@@ -60,10 +60,10 @@ export default class Select2 extends Component {
60
if (typeof item === 'string' ||
61
((!!item && typeof item === 'object') && Object.prototype.toString.call(item) === '[object String]')) {
62
return (<option key={'option-' + k} value={item}>{item}</option>);
63
- } else {
64
- const { id, text, ...itemParams } = item;
65
- return (<option key={'option-' + k} value={id} {...itemParams}>{text}</option>);
66
}
+
+ const { id, text, ...itemParams } = item;
+ return (<option key={'option-' + k} value={id} {...itemParams}>{text}</option>);
67
})}
68
</select>
69
);
0 commit comments