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/stores/post_store.jsx | |
parent | 5507154992eedd323385c37e59b2008586b9aaa0 (diff) | |
download | chat-6e5b1b7cd48cd199b858ab8810cde74259843526.tar.gz chat-6e5b1b7cd48cd199b858ab8810cde74259843526.tar.bz2 chat-6e5b1b7cd48cd199b858ab8810cde74259843526.zip |
Fix some JS errors (#6811)
Diffstat (limited to 'webapp/stores/post_store.jsx')
-rw-r--r-- | webapp/stores/post_store.jsx | 2 |
1 files changed, 1 insertions, 1 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) { |