1
0
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:
Michael An
2023-11-24 10:54:39 +08:00
parent 28f25c9886
commit ceb7d486fb
2 changed files with 2 additions and 2 deletions

View File

@@ -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: [],

View File

@@ -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