diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 8301dbb05..f6e49126b 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -166,74 +166,78 @@
|
|
|
|
{{end}}
diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl
index 1a461c7ad..d606a1d74 100644
--- a/templates/repo/diff/section_unified.tmpl
+++ b/templates/repo/diff/section_unified.tmpl
@@ -39,35 +39,37 @@
|
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 2e7b13cb6..8ffd56cfb 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1055,7 +1055,11 @@ async function initRepository() {
$.post($this.data('url'), {
_csrf: csrf
}).done(() => {
+ const $conversationHolder = $this.closest('.conversation-holder');
$(`#${$this.data('comment-id')}`).remove();
+ if ($conversationHolder.length && !$conversationHolder.find('.comment').length) {
+ $conversationHolder.remove();
+ }
});
}
return false;