fix: fixed crash issue for post in learner tab (#684)

This commit is contained in:
sundasnoreen12
2024-03-28 13:30:50 +05:00
committed by GitHub
parent 80073e3f83
commit 4914f51b6e

View File

@@ -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],