summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view/components/post_list.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/post_view/components/post_list.jsx')
-rw-r--r--webapp/components/post_view/components/post_list.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/post_list.jsx b/webapp/components/post_view/components/post_list.jsx
index 8e1d58e15..685af045a 100644
--- a/webapp/components/post_view/components/post_list.jsx
+++ b/webapp/components/post_view/components/post_list.jsx
@@ -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;
+ }
});
}