Skip to content

Commit

Permalink
Merge pull request '[common mobile] Fix error when empty input for se…
Browse files Browse the repository at this point in the history
…arch input' (#201) from fix/bug-empty-search-error into release/v8.3.0
  • Loading branch information
maxkadushkin committed Dec 23, 2024
2 parents ff1d505 + c6fbed0 commit 70fcc94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/common/mobile/lib/view/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class SearchView extends Component {

onSearchKeyDown(e) {
if(e.keyCode === 13) {
if (this.props.onSearchQuery(this.searchParams(), true) && this.searchTimer) {
if (this.state.searchQuery && this.props.onSearchQuery(this.searchParams(), true) && this.searchTimer) {
clearInterval(this.searchTimer);
this.searchTimer = undefined;
}
Expand Down

0 comments on commit 70fcc94

Please sign in to comment.