mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
fix code search bug
This commit is contained in:
@@ -192,7 +192,7 @@ class Search extends Component {
|
||||
onSearch = () => {
|
||||
const { value } = this.state;
|
||||
const { repoID } = this.props;
|
||||
if (this.inputValue === '' || this.getValueLength(this.inputValue) < 3) {
|
||||
if (this.inputValue === '' || getValueLength(this.inputValue) < 3) {
|
||||
this.setState({
|
||||
highlightIndex: 0,
|
||||
resultItems: [],
|
||||
|
@@ -62,7 +62,7 @@ class Search extends Component {
|
||||
}
|
||||
this.inputValue = newValue.trim();
|
||||
|
||||
if (this.inputValue === '' || _this.getValueLength(this.inputValue) < 3) {
|
||||
if (this.inputValue === '' || getValueLength(this.inputValue) < 3) {
|
||||
this.setState({
|
||||
isResultShow: false,
|
||||
isResultGetted: false
|
||||
|
Reference in New Issue
Block a user