Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
[C-836] Fix enter on search (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers committed Aug 31, 2022
1 parent d644cc1 commit 14aa5ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/web/src/components/search/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ class SearchBar extends Component {
this.setState({ shouldDismissTagPopup: true })
if (
(this.props.isTagSearch && this.state.value.length > 1) ||
(!this.props.isTagSearch &&
this.state.value.length > 0 &&
this.props.resultsCount === 0)
(!this.props.isTagSearch && this.state.value.length > 0)
) {
this.props.onSubmit(this.state.value)
this.setState({ debounce: null })
Expand Down

0 comments on commit 14aa5ac

Please sign in to comment.