소스 검색

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

Ryu Sato 8 년 전
부모
커밋
218bd712e0
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  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}