Skip to content

Commit

Permalink
Merge pull request #5788 from haiwen/fix-code-search-bug
Browse files Browse the repository at this point in the history
fix code search bug
  • Loading branch information
Michael18811380328 authored Nov 24, 2023
2 parents 28f25c9 + ceb7d48 commit f0b2534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/search/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/search/wiki-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0b2534

Please sign in to comment.