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; }, }, });