diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ToC/ToC.tsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/components/ToC/ToC.tsx b/src/components/ToC/ToC.tsx index 3ab482c..b172b3a 100644 --- a/src/components/ToC/ToC.tsx +++ b/src/components/ToC/ToC.tsx @@ -1,6 +1,5 @@ import { t } from '@lingui/macro'; import { Heading } from '@ts/types/app'; -import { slugify } from '@utils/helpers/slugify'; import useHeadingsTree from '@utils/hooks/useHeadingsTree'; import styles from './ToC.module.scss'; @@ -10,8 +9,6 @@ const ToC = () => { const getItems = (headings: Heading[]) => { return headings.map((heading) => { - if (heading.id === slugify(title)) return; - return ( <li key={heading.id}> <a href={`#${heading.id}`}>{heading.title}</a> |
