Explorar o código

refs issue#237
- don't use '...' syntax.

Ryu Sato %!s(int64=8) %!d(string=hai) anos
pai
achega
218bd712e0
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      resource/js/components/SearchTypeahead.js

+ 1 - 5
resource/js/components/SearchTypeahead.js

@@ -171,15 +171,11 @@ export default class SearchTypeahead extends React.Component {
     const defaultSelected = (this.props.keywordOnInit != "")
     const defaultSelected = (this.props.keywordOnInit != "")
       ? [{path: this.props.keywordOnInit}]
       ? [{path: this.props.keywordOnInit}]
       : [];
       : [];
-    const {ref, inputProps, isLoading, labelKey, minLength, options, emptyLabel,
-           align, submitFormOnEnter, onSearch, onInputChange, renderMenuItemChildren,
-           caseSensitive, defaultSelected, onBlur, onFocus, keywordOnInit,
-           ...otherProps} = this.props;
 
 
     return (
     return (
       <span>
       <span>
         <AsyncTypeahead
         <AsyncTypeahead
-          {...otherProps}
+          {...this.props}
           ref="typeahead"
           ref="typeahead"
           inputProps={{name: "q", autoComplete: "off"}}
           inputProps={{name: "q", autoComplete: "off"}}
           isLoading={this.state.isLoading}
           isLoading={this.state.isLoading}