diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-30 17:01:42 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-06-30 14:01:42 -0700 |
commit | 6e5b1b7cd48cd199b858ab8810cde74259843526 (patch) | |
tree | 4cb8f88b9d7fe76224ad1db1e68c3e0d2e074bb3 /webapp | |
parent | 5507154992eedd323385c37e59b2008586b9aaa0 (diff) | |
download | chat-6e5b1b7cd48cd199b858ab8810cde74259843526.tar.gz chat-6e5b1b7cd48cd199b858ab8810cde74259843526.tar.bz2 chat-6e5b1b7cd48cd199b858ab8810cde74259843526.zip |
Fix some JS errors (#6811)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/stores/post_store.jsx | 2 | ||||
-rw-r--r-- | webapp/yarn.lock | 2 |
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" |