Revert unnecessary changes

This commit is contained in:
Lunny Xiao 2025-07-20 14:50:04 -07:00
parent df456dd7f8
commit fa5fc02cb8
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -150,12 +150,6 @@ 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')) {