From b8371a91664b85b37133fc59f23053b49b305dc3 Mon Sep 17 00:00:00 2001 From: Shriya-Chauhan Date: Thu, 30 Jan 2025 12:51:20 +0530 Subject: [PATCH 1/5] Fixed issue with filter selection logic --- components/navigation/Filter.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/navigation/Filter.tsx b/components/navigation/Filter.tsx index 7b69f4702931..5e38a0766da3 100644 --- a/components/navigation/Filter.tsx +++ b/components/navigation/Filter.tsx @@ -66,6 +66,8 @@ export default function Filter({ data, onFilter, checks, className }: FilterProp if (e) { newQuery[check.name] = e; + } else { + delete newQuery[check.name]; // Remove filter if deselected } if (newQuery) { const queryParams = new URLSearchParams(newQuery as { [key: string]: string }).toString(); From ded1ec5d45bc54a920c3325ba71b329a3ab7e7d7 Mon Sep 17 00:00:00 2001 From: Shriya-Chauhan Date: Fri, 31 Jan 2025 15:17:01 +0530 Subject: [PATCH 2/5] fixes for broken TOC links --- components/TOC.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TOC.tsx b/components/TOC.tsx index 8b655b07d784..246a826e525f 100644 --- a/components/TOC.tsx +++ b/components/TOC.tsx @@ -39,7 +39,7 @@ export default function TOC({ className, cssBreakingPoint = 'xl', toc, contentSe // a-namedefinitionsapplicationaapplication slugWithATag contains transformed heading name that is later used // for scroll spy identification slugWithATag: item.content - .replace(/[<>?!:`'."\\/=]/gi, '') + .replace(/[<>?!:`'."\\/=,]/gi, '') .replace(/\s/gi, '-') .toLowerCase() })); From 71d8c1f5c7a93c0c9caa955477dc71ed9d58dc90 Mon Sep 17 00:00:00 2001 From: Shriya Chauhan <78415084+Shriya-Chauhan@users.noreply.github.com> Date: Fri, 31 Jan 2025 15:36:08 +0530 Subject: [PATCH 3/5] removed lint errors --- components/TOC.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TOC.tsx b/components/TOC.tsx index 246a826e525f..1547c61cc6d8 100644 --- a/components/TOC.tsx +++ b/components/TOC.tsx @@ -39,7 +39,7 @@ export default function TOC({ className, cssBreakingPoint = 'xl', toc, contentSe // a-namedefinitionsapplicationaapplication slugWithATag contains transformed heading name that is later used // for scroll spy identification slugWithATag: item.content - .replace(/[<>?!:`'."\\/=,]/gi, '') + .replace(/[<>?!:`'."\\/=,]/gi, '') .replace(/\s/gi, '-') .toLowerCase() })); From 49ef50b34a01a86bd2b0f69d66af3921f4fcc2d3 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Sat, 1 Feb 2025 12:05:58 +0530 Subject: [PATCH 4/5] Update components/TOC.tsx --- components/TOC.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TOC.tsx b/components/TOC.tsx index 1547c61cc6d8..77889bb207e6 100644 --- a/components/TOC.tsx +++ b/components/TOC.tsx @@ -39,7 +39,7 @@ export default function TOC({ className, cssBreakingPoint = 'xl', toc, contentSe // a-namedefinitionsapplicationaapplication slugWithATag contains transformed heading name that is later used // for scroll spy identification slugWithATag: item.content - .replace(/[<>?!:`'."\\/=,]/gi, '') + .replace(/[<>?!:`'."\\/=@#$%^&*()\[\]{}+,;]/gi, '') .replace(/\s/gi, '-') .toLowerCase() })); From f4e47f271340ba8aaf6402496e51c596f835ac73 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Sat, 1 Feb 2025 12:09:46 +0530 Subject: [PATCH 5/5] Update components/TOC.tsx --- components/TOC.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TOC.tsx b/components/TOC.tsx index 77889bb207e6..197fcdc7607c 100644 --- a/components/TOC.tsx +++ b/components/TOC.tsx @@ -39,7 +39,7 @@ export default function TOC({ className, cssBreakingPoint = 'xl', toc, contentSe // a-namedefinitionsapplicationaapplication slugWithATag contains transformed heading name that is later used // for scroll spy identification slugWithATag: item.content - .replace(/[<>?!:`'."\\/=@#$%^&*()\[\]{}+,;]/gi, '') + .replace(/[<>?!:`'."\\/=@#$%^&*()[\]{}+,;]/gi, '') .replace(/\s/gi, '-') .toLowerCase() }));