added check for main post

This commit is contained in:
ue 2019-08-28 22:40:07 +03:00
parent bef2af4ecf
commit fa0c54e957

View File

@ -96,8 +96,9 @@ class PostContainer extends Component {
author, author,
} = this.state; } = this.state;
if (isHasParentPost && post) if (isHasParentPost && post && get(post, 'parent_author') && get(post, 'parent_permlink')) {
this._loadPost(get(post, 'parent_author'), get(post, 'parent_permlink'), true); this._loadPost(get(post, 'parent_author'), get(post, 'parent_permlink'), true);
}
return ( return (
<PostScreen <PostScreen