From 03cd1cc7d6581975cc85cacee678c90499e0f0aa Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 22 Jul 2015 09:51:42 -0400 Subject: Small patch for a null TypeError in post_list updating code --- web/react/components/post_list.jsx | 1 + 1 file changed, 1 insertion(+) (limited to 'web/react/components') 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(); -- cgit v1.2.3-1-g7c22