mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-28 19:50:19 +02:00
Fix the bug when the last code comment deleted, a review comment type comment is still in the activity list of the pull request
This commit is contained in:
@@ -150,6 +150,13 @@ export function initRepoIssueCommentDelete() {
|
||||
counter.textContent = String(num);
|
||||
}
|
||||
|
||||
const json: Record<string, any> = await response.json();
|
||||
if (json.errorMessage) throw new Error(json.errorMessage);
|
||||
|
||||
if (json.deletedReviewCommentHashTag) {
|
||||
document.querySelector(`#${json.deletedReviewCommentHashTag}`)?.remove();
|
||||
}
|
||||
|
||||
document.querySelector(`#${deleteButton.getAttribute('data-comment-id')}`)?.remove();
|
||||
|
||||
if (conversationHolder && !conversationHolder.querySelector('.comment')) {
|
||||
|
||||
Reference in New Issue
Block a user