From 3c0d5b983848d29b97cfbaee025a4e6060ffd0f2 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 3 May 2016 13:07:29 -0400 Subject: Fix console error from replying in mobile view (#2864) --- webapp/components/posts_view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/components/posts_view.jsx') 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; } -- cgit v1.2.3-1-g7c22