Skip to content

Commit

Permalink
Update search_bar.jsx
Browse files Browse the repository at this point in the history
added fix for when no notification options for mentions is defined by the user...
  • Loading branch information
prixone committed Mar 30, 2017
1 parent 6b51cdc commit d33320d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/components/search_bar.jsx
Expand Up @@ -74,7 +74,7 @@ export default class SearchBar extends React.Component {
if (!Utils.areObjectsEqual(newState, this.state)) {
this.setState(newState);
}
if (doSearch) {
if (doSearch && newState && newState.searchTerm.length) {
performSearch(
newState.searchTerm,
isMentionSearch,
Expand Down

0 comments on commit d33320d

Please sign in to comment.