We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0622689 commit 5b1d121Copy full SHA for 5b1d121
components/show-new-comments.js
@@ -29,8 +29,8 @@ function prepareComments (client, newComments) {
29
totalNComments += (comment.ncomments || 0)
30
}
31
32
- // update all ancestors
33
- const ancestors = data.path.split('.')
+ // update all ancestors, but not the item itself
+ const ancestors = data.path.split('.').slice(0, -1)
34
updateAncestorsCommentCount(client.cache, ancestors, totalNComments)
35
36
return {
0 commit comments