diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-07-22 09:51:42 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-07-22 09:51:42 -0400 |
commit | 03cd1cc7d6581975cc85cacee678c90499e0f0aa (patch) | |
tree | e8484963351ad234857c3f9be31d20429f600ea4 | |
parent | eb7c08ab00a6c1a72e367586fb853c08478f3afa (diff) | |
download | chat-03cd1cc7d6581975cc85cacee678c90499e0f0aa.tar.gz chat-03cd1cc7d6581975cc85cacee678c90499e0f0aa.tar.bz2 chat-03cd1cc7d6581975cc85cacee678c90499e0f0aa.zip |
Small patch for a null TypeError in post_list updating code
-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(); |