PLT-7311 Don't allow empty search in searchbar. (#7133)
Этот коммит содержится в:
коммит произвёл
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,
|
||||
|
||||
Ссылка в новой задаче
Block a user