summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-12-12 19:52:19 -0500
committerenahum <nahumhbl@gmail.com>2016-12-12 21:52:19 -0300
commit27aaa6dad37d77bc8a2660b27980c4ebd5957250 (patch)
treecdf506c03bb25f44bac5abe136919b156782f317 /webapp/components/post_view
parente28dea6b115fe5138591aee89804ed91da1a035a (diff)
downloadchat-27aaa6dad37d77bc8a2660b27980c4ebd5957250.tar.gz
chat-27aaa6dad37d77bc8a2660b27980c4ebd5957250.tar.bz2
chat-27aaa6dad37d77bc8a2660b27980c4ebd5957250.zip
Fix JS errors with RHS and flagged posts (#4771)
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r--webapp/components/post_view/components/post_list.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/post_list.jsx b/webapp/components/post_view/components/post_list.jsx
index b3b83dfd6..05e2ff618 100644
--- a/webapp/components/post_view/components/post_list.jsx
+++ b/webapp/components/post_view/components/post_list.jsx
@@ -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);
}
});