From 0963d743089275195aa678df1cbaf87649623f1a Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 28 Oct 2023 09:34:52 +0100 Subject: [PATCH] fix: Cleaner game search --- src/renderer/store/main/reducer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/store/main/reducer.ts b/src/renderer/store/main/reducer.ts index 484fc56f9..6963f68b5 100644 --- a/src/renderer/store/main/reducer.ts +++ b/src/renderer/store/main/reducer.ts @@ -160,7 +160,7 @@ export function mainStateReducer(state: MainState = createInitialState(), action metaState: RequestState.RECEIVED, // Dirty games isDirty: action.total !== 0, - games: action.total === 0 ? [] : view.games, + games: [], lastCount: action.total === 0 ? 0 : view.lastCount, pageState: {}, // Update total (for the first response only)