Skip to content

Commit 87f4245

Browse files
kuduzowkuduzow
andauthored
fix: вопрос теперь добавляется через адаптер (#323)
Co-authored-by: kuduzow <admin@intocode.ru>
1 parent a4288c1 commit 87f4245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/questions/questionsSlice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const questionsSlice = createSlice({
241241
},
242242

243243
[addQuestion.fulfilled]: (state, action) => {
244-
state.questions.push(action.payload.question);
244+
questionsAdapter.addOne(state, action.payload.question);
245245
state.error = null;
246246
state.fetching = false;
247247
},

0 commit comments

Comments
 (0)