summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-05-03 13:07:29 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-05-03 13:07:29 -0400
commit3c0d5b983848d29b97cfbaee025a4e6060ffd0f2 (patch)
treee9947867165c46dea4cbd00fc64711b0301ffff3 /webapp
parentb474196e5ca650e8eb857abaa57970809be9caa5 (diff)
downloadchat-3c0d5b983848d29b97cfbaee025a4e6060ffd0f2.tar.gz
chat-3c0d5b983848d29b97cfbaee025a4e6060ffd0f2.tar.bz2
chat-3c0d5b983848d29b97cfbaee025a4e6060ffd0f2.zip
Fix console error from replying in mobile view (#2864)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/posts_view.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/posts_view.jsx b/webapp/components/posts_view.jsx
index 0515b696c..f41752469 100644
--- a/webapp/components/posts_view.jsx
+++ b/webapp/components/posts_view.jsx
@@ -510,7 +510,7 @@ export default class PostsView extends React.Component {
}
let topPostCreateAt = 0;
- if (this.state.topPostId) {
+ if (this.state.topPostId && this.props.postList.posts[this.state.topPostId]) {
topPostCreateAt = this.props.postList.posts[this.state.topPostId].create_at;
}