diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-05-03 13:07:29 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-05-03 13:07:29 -0400 |
commit | 3c0d5b983848d29b97cfbaee025a4e6060ffd0f2 (patch) | |
tree | e9947867165c46dea4cbd00fc64711b0301ffff3 /webapp/components | |
parent | b474196e5ca650e8eb857abaa57970809be9caa5 (diff) | |
download | chat-3c0d5b983848d29b97cfbaee025a4e6060ffd0f2.tar.gz chat-3c0d5b983848d29b97cfbaee025a4e6060ffd0f2.tar.bz2 chat-3c0d5b983848d29b97cfbaee025a4e6060ffd0f2.zip |
Fix console error from replying in mobile view (#2864)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/posts_view.jsx | 2 |
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; } |