mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 13:17:35 +00:00
fix error (When part of conversation has already been deleted.) (#5216)
This commit is contained in:
parent
b3af3f9f8c
commit
ecfa1c3f3b
|
@ -37,7 +37,7 @@ export function updateTimeline(timeline, status) {
|
||||||
if (status.in_reply_to_id) {
|
if (status.in_reply_to_id) {
|
||||||
let parent = getState().getIn(['statuses', 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'));
|
parents.push(parent.get('id'));
|
||||||
parent = getState().getIn(['statuses', parent.get('in_reply_to_id')]);
|
parent = getState().getIn(['statuses', parent.get('in_reply_to_id')]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue