File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,11 @@ export default class Select2 extends Component {
50
50
return (
51
51
< select multiple = { this . props . multiple } >
52
52
{ this . props . data . map ( ( item , k ) => {
53
- if ( typeof item === 'string' || ( ( ! ! item && typeof item === 'object' ) && Object . prototype . toString . call ( item ) === '[object String]' ) ) {
53
+ if ( typeof item === 'string' ||
54
+ ( ( ! ! item && typeof item === 'object' ) && Object . prototype . toString . call ( item ) === '[object String]' ) ) {
54
55
return ( < option key = { 'option-' + k } > { item } </ option > ) ;
55
56
}
56
- else {
57
- return ( < option key = { 'option-' + k } value = { item . id } > { item . text } </ option > ) ;
58
- }
57
+ return ( < option key = { 'option-' + k } value = { item . id } > { item . text } </ option > ) ;
59
58
} ) }
60
59
</ select >
61
60
) ;
You can’t perform that action at this time.
0 commit comments