Fixing scrollHeight javascript error (#4388)

Этот коммит содержится в:
Corey Hulen
2016-11-01 05:35:21 -07:00
коммит произвёл Christopher Speller
родитель 6d3b3162b0
Коммит 9bae1f7e93

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

@@ -443,7 +443,9 @@ export default class PostList extends React.Component {
scrollToBottom() {
this.animationFrameId = window.requestAnimationFrame(() => {
this.refs.postlist.scrollTop = this.refs.postlist.scrollHeight;
if (this.refs.postlist) {
this.refs.postlist.scrollTop = this.refs.postlist.scrollHeight;
}
});
}