Remove old search results with new search (#36053)

This commit is contained in:
Echo 2025-09-08 14:35:59 +02:00 committed by GitHub
parent b99c94537b
commit 24fb862a65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,9 @@ export const searchReducer = createReducer(initialState, (builder) => {
(state, action) => { (state, action) => {
state.type = action.meta.arg.type; state.type = action.meta.arg.type;
state.loading = true; state.loading = true;
if (action.type === submitSearch.pending.type) {
state.results = undefined;
}
}, },
); );