diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 8301dbb05d..f6e49126bf 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 1a461c7ad7..d606a1d74b 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 2e7b13cb64..8ffd56cfbf 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;