mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Fixing bug in reply counting.
This commit is contained in:
@@ -10,7 +10,7 @@ const CommentCount = ({items, id}) => {
|
|||||||
const itemKeys = Object.keys(items)
|
const itemKeys = Object.keys(items)
|
||||||
for (var i=0; i < itemKeys.length; i++) {
|
for (var i=0; i < itemKeys.length; i++) {
|
||||||
const item = items[itemKeys[i]]
|
const item = items[itemKeys[i]]
|
||||||
if (item.type === 'comment' && item.children) {
|
if (item.children) {
|
||||||
count += item.children.length
|
count += item.children.length
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user