Fix reworked search
This commit is contained in:
parent
7ddda65269
commit
d93d6f5124
8 changed files with 30 additions and 23 deletions
|
@ -25,6 +25,10 @@ export function submitSearch() {
|
|||
return (dispatch, getState) => {
|
||||
const value = getState().getIn(['search', 'value']);
|
||||
|
||||
if (value.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch(fetchSearchRequest());
|
||||
|
||||
api(getState).get('/api/v1/search', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue