summaryrefslogtreecommitdiffstats
path: root/web/react/components/posts_view.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-02-25 19:02:30 -0500
committerJoramWilander <jwawilander@gmail.com>2016-02-25 19:02:30 -0500
commitd563bf11527698bef02fc4b17852e260ba43f4e8 (patch)
treee90efc97f128418b2113331e57ec2ae56f328b04 /web/react/components/posts_view.jsx
parent7e59440abbcbfd960a0e5aa6e0b2bb6f91389877 (diff)
downloadchat-d563bf11527698bef02fc4b17852e260ba43f4e8.tar.gz
chat-d563bf11527698bef02fc4b17852e260ba43f4e8.tar.bz2
chat-d563bf11527698bef02fc4b17852e260ba43f4e8.zip
Update search results profiles properly on refresh and handle scrollHeight error
Diffstat (limited to 'web/react/components/posts_view.jsx')
-rw-r--r--web/react/components/posts_view.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx
index 1ea7711ea..9a1673483 100644
--- a/web/react/components/posts_view.jsx
+++ b/web/react/components/posts_view.jsx
@@ -321,7 +321,7 @@ export default class PostsView extends React.Component {
if (this.refs.newMessageSeparator) {
var objDiv = this.refs.postlist;
objDiv.scrollTop = this.refs.newMessageSeparator.offsetTop; //scrolls node to top of Div
- } else {
+ } else if (this.refs.postlist) {
this.refs.postlist.scrollTop = this.refs.postlist.scrollHeight;
}
});