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

Loading…
Cancel
Save