diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-02-26 11:19:05 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-02-26 11:19:05 -0500 |
commit | 53d0bce1da190d45ffd8dbf4afcf7e8b2878bad5 (patch) | |
tree | 53043d11186353b54e107466e72c55178e874a22 /web/react/components/posts_view.jsx | |
parent | 3734145f9676946792a3efab842812e547cbdab1 (diff) | |
parent | d563bf11527698bef02fc4b17852e260ba43f4e8 (diff) | |
download | chat-53d0bce1da190d45ffd8dbf4afcf7e8b2878bad5.tar.gz chat-53d0bce1da190d45ffd8dbf4afcf7e8b2878bad5.tar.bz2 chat-53d0bce1da190d45ffd8dbf4afcf7e8b2878bad5.zip |
Merge pull request #2257 from mattermost/rhs-profile-fix
Final fixes for user store changes
Diffstat (limited to 'web/react/components/posts_view.jsx')
-rw-r--r-- | web/react/components/posts_view.jsx | 2 |
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; } }); |