From 8fa6c24b4a5a2b4f0a476af810cab687ea3778e8 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Fri, 10 Nov 2023 00:30:47 +0500 Subject: [PATCH] #1443, fix error upon comment --- app/javascript/retrospring/features/answerbox/comment/new.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/javascript/retrospring/features/answerbox/comment/new.ts b/app/javascript/retrospring/features/answerbox/comment/new.ts index 154448e7..8c60b9cf 100644 --- a/app/javascript/retrospring/features/answerbox/comment/new.ts +++ b/app/javascript/retrospring/features/answerbox/comment/new.ts @@ -31,10 +31,6 @@ function createComment(input: HTMLInputElement, id: string, counter: Element, gr } input.value = ''; counter.innerHTML = String(512); - - const sub = document.querySelector(`[data-action=ab-submarine][data-a-id="${id}"]`); - sub.dataset.torpedo = "no" - sub.children[0].nextSibling.textContent = ' ' + I18n.translate('voc.unsubscribe'); } showNotification(data.message, data.success);