mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 05:02:23 +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)
|
||||
for (var i=0; i < itemKeys.length; i++) {
|
||||
const item = items[itemKeys[i]]
|
||||
if (item.type === 'comment' && item.children) {
|
||||
if (item.children) {
|
||||
count += item.children.length
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user