summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view/post_body/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/post_view/post_body/index.js')
-rw-r--r--webapp/components/post_view/post_body/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_view/post_body/index.js b/webapp/components/post_view/post_body/index.js
index 37cf114b0..90f04e0f9 100644
--- a/webapp/components/post_view/post_body/index.js
+++ b/webapp/components/post_view/post_body/index.js
@@ -16,7 +16,7 @@ function mapStateToProps(state, ownProps) {
let parentPostUser;
if (ownProps.post.root_id) {
parentPost = getPost(state, ownProps.post.root_id);
- parentPostUser = getUser(state, parentPost.user_id);
+ parentPostUser = parentPost ? getUser(state, parentPost.user_id) : null;
}
return {