diff --git a/app/javascript/mastodon/reducers/search.ts b/app/javascript/mastodon/reducers/search.ts index 3f6b96fa07..c822990244 100644 --- a/app/javascript/mastodon/reducers/search.ts +++ b/app/javascript/mastodon/reducers/search.ts @@ -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; + } }, );