From 636d8c77f72ff231a1a85fd86aff569731dfaff8 Mon Sep 17 00:00:00 2001 From: kuduzow Date: Thu, 23 Feb 2023 15:09:00 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B2=D0=BE=D0=BF=D1=80=D0=BE=D1=81=20?= =?UTF-8?q?=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=D1=81=D1=8F=20=D1=87=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B7=20=D0=B0=D0=B4=D0=B0=D0=BF=D1=82=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/questions/questionsSlice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/questions/questionsSlice.js b/src/features/questions/questionsSlice.js index c06c824..89d43fb 100644 --- a/src/features/questions/questionsSlice.js +++ b/src/features/questions/questionsSlice.js @@ -241,7 +241,7 @@ const questionsSlice = createSlice({ }, [addQuestion.fulfilled]: (state, action) => { - state.questions.push(action.payload.question); + questionsAdapter.addOne(state, action.payload.question); state.error = null; state.fetching = false; },