Fix JS errors with RHS and flagged posts (#4771)

Этот коммит содержится в:
Joram Wilander
2016-12-12 19:52:19 -05:00
коммит произвёл enahum
родитель e28dea6b11
Коммит 27aaa6dad3
2 изменённых файлов: 15 добавлений и 15 удалений

Просмотреть файл

@@ -450,7 +450,7 @@ export default class PostList extends React.Component {
}
} else if (this.refs.postlist.scrollHeight !== this.prevScrollHeight) {
window.requestAnimationFrame(() => {
if (this.jumpToPostNode) {
if (this.jumpToPostNode && this.refs.postlist) {
this.refs.postlist.scrollTop += (this.jumpToPostNode.offsetTop - this.prevOffsetTop);
}
});