From 96e5281c5060465606dc2fa83f7483136f337ad4 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Mon, 8 Jul 2024 21:12:02 +0600 Subject: [PATCH] fix: remove check --- src/components/FrameRenderer/renderer.ts | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/components/FrameRenderer/renderer.ts b/src/components/FrameRenderer/renderer.ts index f4962a679..ba4adb655 100644 --- a/src/components/FrameRenderer/renderer.ts +++ b/src/components/FrameRenderer/renderer.ts @@ -190,25 +190,14 @@ export class Renderer { e.preventDefault(); const isCurrentStatusDone = targetGroup.classList.contains('done'); - const normalizedGroupId = groupId.replace(/^\d+-/, ''); + const normalizedGroupId = groupId + .replace(/^\d+-/, '') + .replace('check:', ''); if (normalizedGroupId.startsWith('ext_link:')) { return; } - if (/^check:/.test(groupId)) { - window.dispatchEvent( - new CustomEvent(`${this.resourceType}.topic.toggle`, { - detail: { - topicId: groupId.replace('check:', ''), - resourceType: this.resourceType, - resourceId: this.resourceId, - }, - }), - ); - return; - } - this.updateTopicStatus( normalizedGroupId, !isCurrentStatusDone ? 'done' : 'pending',