summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-27 17:03:09 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-27 17:03:09 -0500
commit4bc5ba9e50e9ee50b28e2cb0bd5996c578b1d851 (patch)
treed4d52425f783f0ea1e125a569139c09ad982baac /web
parent42a001c4e26acaebb7bade2a9b45428578b04164 (diff)
downloadchat-4bc5ba9e50e9ee50b28e2cb0bd5996c578b1d851.tar.gz
chat-4bc5ba9e50e9ee50b28e2cb0bd5996c578b1d851.tar.bz2
chat-4bc5ba9e50e9ee50b28e2cb0bd5996c578b1d851.zip
Fixed getCommentCount
Diffstat (limited to 'web')
-rw-r--r--web/react/stores/post_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/stores/post_store.jsx b/web/react/stores/post_store.jsx
index 24b0d0dd0..1525e4048 100644
--- a/web/react/stores/post_store.jsx
+++ b/web/react/stores/post_store.jsx
@@ -554,7 +554,7 @@ class PostStoreClass extends EventEmitter {
return 0;
}
getCommentCount(post) {
- const posts = this.getPosts(post.channel_id).posts;
+ const posts = this.getAllPosts(post.channel_id).posts;
let commentCount = 0;
for (const id in posts) {