summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/stores/post_store.jsx2
-rw-r--r--webapp/yarn.lock2
2 files changed, 2 insertions, 2 deletions
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"