Fix console error from replying in mobile view (#2864)

This commit is contained in:
Joram Wilander
2016-05-03 13:07:29 -04:00
committed by Harrison Healey
parent b474196e5c
commit 3c0d5b9838

View File

@@ -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;
}