fix: topic id

fix/check
Arik Chakma 5 months ago
parent 96e5281c50
commit ae08294a9e
  1. 8
      src/components/FrameRenderer/renderer.ts

@ -152,6 +152,10 @@ export class Renderer {
return; return;
} }
if (/^check:/.test(topicId)) {
topicId = topicId.replace('check:', '');
}
pageProgressMessage.set('Updating progress'); pageProgressMessage.set('Updating progress');
updateResourceProgress( updateResourceProgress(
{ {
@ -190,9 +194,7 @@ export class Renderer {
e.preventDefault(); e.preventDefault();
const isCurrentStatusDone = targetGroup.classList.contains('done'); const isCurrentStatusDone = targetGroup.classList.contains('done');
const normalizedGroupId = groupId const normalizedGroupId = groupId.replace(/^\d+-/, '');
.replace(/^\d+-/, '')
.replace('check:', '');
if (normalizedGroupId.startsWith('ext_link:')) { if (normalizedGroupId.startsWith('ext_link:')) {
return; return;

Loading…
Cancel
Save