diff --git a/webapp/components/posts_view.jsx b/webapp/components/posts_view.jsx index 0515b696c2..f417524694 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; }