Skip to content

Commit

Permalink
fix: fixed crash issue for post in learner tab (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
sundasnoreen12 authored Mar 28, 2024
1 parent 80073e3 commit 4914f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discussions/posts/data/slices.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const threadsSlice = createSlice({
},
pages: !payload.anonymousToPeers
? [
...[payload.id].concat(state.pages[0]) || [],
...(state.pages[0] ? [payload.id].concat(state.pages[0]) : []),
...state.pages.slice(1),
]
: [...state.pages],
Expand Down

0 comments on commit 4914f51

Please sign in to comment.