Fix invalid marking of done nodes

pull/948/head
Kamran Ahmed 3 years ago
parent a174590424
commit 3d0153b2fe
  1. 4
      components/roadmap/content-drawer.tsx

@ -53,7 +53,7 @@ export function ContentDrawer(props: ContentDrawerProps) {
onClick={() => {
localStorage.setItem(groupId, 'done');
document
.querySelectorAll(`[data-group-id*="-${groupId}"]`)
.querySelectorAll(`[data-group-id$="-${groupId}"]`)
.forEach((item) => item?.classList?.add('done'));
onClose();
}}
@ -76,7 +76,7 @@ export function ContentDrawer(props: ContentDrawerProps) {
onClick={() => {
localStorage.removeItem(groupId);
document
.querySelectorAll(`[data-group-id*="-${groupId}"]`)
.querySelectorAll(`[data-group-id$="-${groupId}"]`)
.forEach((item) => item?.classList?.remove('done'));
onClose();
}}

Loading…
Cancel
Save