From 6e5b1b7cd48cd199b858ab8810cde74259843526 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 30 Jun 2017 17:01:42 -0400 Subject: Fix some JS errors (#6811) --- webapp/stores/post_store.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/stores') diff --git a/webapp/stores/post_store.jsx b/webapp/stores/post_store.jsx index b4c8c43c8..a1bdfa4e9 100644 --- a/webapp/stores/post_store.jsx +++ b/webapp/stores/post_store.jsx @@ -71,7 +71,7 @@ class PostStoreClass extends EventEmitter { } getLatestReplyablePost(channelId) { - const postIds = getState().entities.posts.postsInChannel[channelId]; + const postIds = getState().entities.posts.postsInChannel[channelId] || []; const posts = getState().entities.posts.posts; for (const postId of postIds) { -- cgit v1.2.3-1-g7c22