PLT-7311 Don't allow empty search in searchbar. (#7133)

This commit is contained in:
George Goldberg
2017-08-08 13:54:23 +01:00
committed by Joram Wilander
parent dcaed2c8e3
commit 7683e751ab

View File

@@ -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,