diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-12 19:52:19 -0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-12-12 21:52:19 -0300 |
commit | 27aaa6dad37d77bc8a2660b27980c4ebd5957250 (patch) | |
tree | cdf506c03bb25f44bac5abe136919b156782f317 /webapp/components/post_view | |
parent | e28dea6b115fe5138591aee89804ed91da1a035a (diff) | |
download | chat-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.jsx | 2 |
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); } }); |