From 3d0153b2fe9281f85324246fc2bf4fc43c36f740 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 9 Dec 2021 23:13:37 +0100 Subject: [PATCH] Fix invalid marking of done nodes --- components/roadmap/content-drawer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/roadmap/content-drawer.tsx b/components/roadmap/content-drawer.tsx index 9f33f11ba..0c3742f4b 100644 --- a/components/roadmap/content-drawer.tsx +++ b/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(); }}