mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 16:42:47 +00:00
Remove old search results with new search (#36053)
This commit is contained in:
parent
b99c94537b
commit
24fb862a65
|
@ -62,6 +62,9 @@ export const searchReducer = createReducer(initialState, (builder) => {
|
|||
(state, action) => {
|
||||
state.type = action.meta.arg.type;
|
||||
state.loading = true;
|
||||
if (action.type === submitSearch.pending.type) {
|
||||
state.results = undefined;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user