[Glitch] Remove old search results with new search

Port 24fb862a65 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo authored and Claire committed 2025-09-10 18:34:01 +02:00
1 parent acb2c1a635
commit 50acfc48b9
1 file changed
+3
@@ -65,6 +65,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;
}
},
);