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 {
5050 return (
5151 < select multiple = { this . props . multiple } >
5252 { 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]' ) ) {
5455 return ( < option key = { 'option-' + k } > { item } </ option > ) ;
5556 }
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 > ) ;
5958 } ) }
6059 </ select >
6160 ) ;
You can’t perform that action at this time.
0 commit comments