Browse Source

Fix crash when clearing uninitialized timeline (#9662)

pull/4/head
ThibG 5 years ago
committed by Eugen Rochko
parent
commit
e74c99edf5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/reducers/timelines.js

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

@ -88,7 +88,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