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 +- webapp/yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp') 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) { diff --git a/webapp/yarn.lock b/webapp/yarn.lock index 96eadc798..627959bbb 100644 --- a/webapp/yarn.lock +++ b/webapp/yarn.lock @@ -5043,7 +5043,7 @@ math-expression-evaluator@^1.2.14: mattermost-redux@mattermost/mattermost-redux#webapp-master: version "0.0.1" - resolved "https://codeload.github.com/mattermost/mattermost-redux/tar.gz/435f9e5ae8a4d021892465d354b6cd331e2766d9" + resolved "https://codeload.github.com/mattermost/mattermost-redux/tar.gz/36bdc456028c19605263958ecb2e5b9612b4a67f" dependencies: deep-equal "1.0.1" harmony-reflect "1.5.1" -- cgit v1.2.3-1-g7c22