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

Commit

Permalink
fix(dock): dock shouldn't expand after clearing the search term
Browse files Browse the repository at this point in the history
Checking if term is undefined before expanding window.
  • Loading branch information
markmcdowell committed Dec 21, 2020
1 parent 0406ee0 commit 84646ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class SearchAutocompleteContainer extends React.Component<ISearchAutocomp
reaction(
() => this.props.searchStore?.term,
(term) => {
if (term !== "") {
if (term !== undefined && term !== "") {
this.props.resizerStore?.expand();
}
},
Expand Down

0 comments on commit 84646ee

Please sign in to comment.