diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/search_bar.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/components/search_bar.jsx b/webapp/components/search_bar.jsx index f2fed25ca..581fe0536 100644 --- a/webapp/components/search_bar.jsx +++ b/webapp/components/search_bar.jsx @@ -173,6 +173,10 @@ export default class SearchBar extends React.Component { e.preventDefault(); const terms = this.state.searchTerm.trim(); + if (terms.length === 0) { + return; + } + AppDispatcher.handleServerAction({ type: ActionTypes.RECEIVED_SEARCH_TERM, term: terms, |