summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-07-22 09:51:42 -0400
committerChristopher Speller <crspeller@gmail.com>2015-07-22 09:51:42 -0400
commit03cd1cc7d6581975cc85cacee678c90499e0f0aa (patch)
treee8484963351ad234857c3f9be31d20429f600ea4 /web
parenteb7c08ab00a6c1a72e367586fb853c08478f3afa (diff)
downloadchat-03cd1cc7d6581975cc85cacee678c90499e0f0aa.tar.gz
chat-03cd1cc7d6581975cc85cacee678c90499e0f0aa.tar.bz2
chat-03cd1cc7d6581975cc85cacee678c90499e0f0aa.zip
Small patch for a null TypeError in post_list updating code
Diffstat (limited to 'web')
-rw-r--r--web/react/components/post_list.jsx1
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();