Fix status undefined in parentOf
This commit is contained in:
parent
f851bc92c9
commit
3addc36c96
1 changed files with 5 additions and 1 deletions
|
@ -488,7 +488,11 @@ const conversation = {
|
|||
return this.statusMap[id]
|
||||
},
|
||||
parentOf (id) {
|
||||
const { in_reply_to_status_id: parentId } = this.statusById(id)
|
||||
const status = this.statusById(id)
|
||||
if (!status) {
|
||||
return undefined
|
||||
}
|
||||
const { in_reply_to_status_id: parentId } = status
|
||||
return parentId
|
||||
},
|
||||
parentOrSelf (id) {
|
||||
|
|
Loading…
Reference in a new issue