Browse Source

Fix crash when clearing uninitialized timeline

Fixes #875
closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
b300948526
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/reducers/timelines.js

+ 1
- 1
app/javascript/flavours/glitch/reducers/timelines.js View File

@ -83,7 +83,7 @@ const deleteStatus = (state, id, accountId, references) => {
};
const clearTimeline = (state, timeline) => {
return state.updateIn([timeline, 'items'], list => list.clear());
return state.set(timeline, initialTimeline);
};
const filterTimelines = (state, relationship, statuses) => {

Loading…
Cancel
Save