Browse Source

fix error (When part of conversation has already been deleted.) (#5216)

pull/4/head
MitarashiDango 6 years ago
committed by Eugen Rochko
parent
commit
ecfa1c3f3b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/actions/timelines.js

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

@ -37,7 +37,7 @@ export function updateTimeline(timeline, status) {
if (status.in_reply_to_id) {
let parent = getState().getIn(['statuses', status.in_reply_to_id]);
while (parent.get('in_reply_to_id')) {
while (parent && parent.get('in_reply_to_id')) {
parents.push(parent.get('id'));
parent = getState().getIn(['statuses', parent.get('in_reply_to_id')]);
}

Loading…
Cancel
Save