diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-07-22 11:18:39 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-07-22 11:18:39 -0400 |
commit | 9dc1f46d6ef2a9e0ce6cf0353082ba0f13696df6 (patch) | |
tree | e8484963351ad234857c3f9be31d20429f600ea4 /web | |
parent | eb7c08ab00a6c1a72e367586fb853c08478f3afa (diff) | |
parent | 03cd1cc7d6581975cc85cacee678c90499e0f0aa (diff) | |
download | chat-9dc1f46d6ef2a9e0ce6cf0353082ba0f13696df6.tar.gz chat-9dc1f46d6ef2a9e0ce6cf0353082ba0f13696df6.tar.bz2 chat-9dc1f46d6ef2a9e0ce6cf0353082ba0f13696df6.zip |
Merge pull request #232 from mattermost/post-list-null
Small fix for a null TypeError in post_list updating code
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/post_list.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index c058455ba..a2b2ae03f 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -223,6 +223,7 @@ module.exports = React.createClass({ } }, _onTimeChange: function() { + if (!this.state.post_list) return; for (var id in this.state.post_list.posts) { if (!this.refs[id]) continue; this.refs[id].forceUpdateInfo(); |