diff --git a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html index 684efdf..05fa53e 100644 --- a/src/main/twirl/gitbucket/core/issues/commentlist.scala.html +++ b/src/main/twirl/gitbucket/core/issues/commentlist.scala.html @@ -292,7 +292,7 @@ if(data > 0) { var comment = $('.commit-comment-' + id).closest('.not-diff'); if(comment.prev('.not-diff').length == 0){ - comment.next('.not-diff').find('.reply-comment').remove(); + comment.next('.not-diff:has(.reply-comment)').remove(); } comment.remove(); }