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

Этот коммит содержится в:
George Goldberg
2017-08-08 13:54:23 +01:00
коммит произвёл Joram Wilander
родитель dcaed2c8e3
Коммит 7683e751ab

Просмотреть файл

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