From 9ba86bc174efecb642c1d0cd9ab08c49e9e3560b Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 28 Mar 2023 10:19:42 +0100 Subject: [PATCH] Update preferenceSlice.ts --- frontend/src/preferences/preferenceSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/preferences/preferenceSlice.ts b/frontend/src/preferences/preferenceSlice.ts index edf582ce..fee3f30a 100644 --- a/frontend/src/preferences/preferenceSlice.ts +++ b/frontend/src/preferences/preferenceSlice.ts @@ -39,7 +39,7 @@ export const prefSlice = createSlice({ state.selectedDocs = action.payload; }, setSourceDocs: (state, action) => { - state.sourceDocs?.push(...action.payload); + state.sourceDocs = action.payload; }, }, });