mirror of
https://github.com/mastodon/mastodon.git
synced 2024-05-23 04:18:09 +00:00
Clear results when submitting search
This commit is contained in:
parent
4ec08fb993
commit
198083dd88
|
@ -50,6 +50,7 @@ export default function search(state = initialState, action) {
|
|||
return state.set('hidden', true);
|
||||
case SEARCH_FETCH_REQUEST:
|
||||
return state.withMutations(map => {
|
||||
map.set('results', ImmutableMap());
|
||||
map.set('isLoading', true);
|
||||
map.set('submitted', true);
|
||||
map.set('type', action.searchType);
|
||||
|
|
Loading…
Reference in a new issue