From 519d2697b001607ad6f127ef37b7194ed868e14d Mon Sep 17 00:00:00 2001 From: Pyry Koivisto Date: Wed, 8 Jan 2025 10:48:09 +0200 Subject: [PATCH] VKT(Frontend): Reseting examinerDetails should not reset stored oid, as it's needed to ensure functionality across examiner views [deploy] --- frontend/packages/vkt/src/redux/reducers/examinerDetails.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/packages/vkt/src/redux/reducers/examinerDetails.ts b/frontend/packages/vkt/src/redux/reducers/examinerDetails.ts index 61c6da389..f4f63c385 100644 --- a/frontend/packages/vkt/src/redux/reducers/examinerDetails.ts +++ b/frontend/packages/vkt/src/redux/reducers/examinerDetails.ts @@ -47,8 +47,8 @@ const examinerDetailsSlice = createSlice({ ) { state.examEventFilters.toggleFilter = action.payload; }, - resetExaminerDetailsToInitialState(_state) { - return initialState; + resetExaminerDetailsToInitialState(state) { + return { ...initialState, oid: state.oid }; }, }, });