diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-08-17 10:51:17 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-08-18 08:59:27 -0400 |
commit | c9bb7e85f7f273b1f1dbec81a07cc02545410ec4 (patch) | |
tree | 1901bd65ed936b9d46eba073fd22c2e12d56e83d | |
parent | 76d54190a0abb4c03ca7207ae50eff02190ba89a (diff) | |
download | chat-c9bb7e85f7f273b1f1dbec81a07cc02545410ec4.tar.gz chat-c9bb7e85f7f273b1f1dbec81a07cc02545410ec4.tar.bz2 chat-c9bb7e85f7f273b1f1dbec81a07cc02545410ec4.zip |
fix minor issues caused by rebase
-rw-r--r-- | web/react/components/post_list.jsx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 5f977972b..fed8a86bd 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -18,18 +18,22 @@ var ActionTypes = Constants.ActionTypes; function getStateFromStores() { var channel = ChannelStore.getCurrent(); - if (channel == null) channel = {}; + if (channel == null) { + channel = {}; + } - var post_list = PostStore.getCurrentPosts(); - var pending_post_list = PostStore.getPendingPosts(channel.id); + var postList = PostStore.getCurrentPosts(); + var pendingPostList = PostStore.getPendingPosts(channel.id); - if (pending_post_list) { - post_list.order = pending_post_list.order.concat(post_list.order); - for (var pid in pending_post_list.posts) { post_list.posts[pid] = pending_post_list.posts[pid] }; + if (pendingPostList) { + postList.order = pendingPostList.order.concat(postList.order); + for (var pid in pendingPostList.posts) { + postList.posts[pid] = pendingPostList.posts[pid]; + } } return { - post_list: post_list, + postList: postList, channel: channel }; } |