Răsfoiți Sursa

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

Ryu Sato 8 ani în urmă
părinte
comite
218bd712e0
1 a modificat fișierele cu 1 adăugiri și 5 ștergeri
  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 != "")
       ? [{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 (
       <span>
         <AsyncTypeahead
-          {...otherProps}
+          {...this.props}
           ref="typeahead"
           inputProps={{name: "q", autoComplete: "off"}}
           isLoading={this.state.isLoading}