Skip to content

Commit 4624ae9

Browse files
authored
fix: headings having duplicate keys (#8348)
* fix: fix headings having duplicate keys * ci: don't mind me triggering the ci
1 parent c49bc15 commit 4624ae9

File tree

1 file changed

+2
-2
lines changed
  • packages/ui-components/src/Containers/MetaBar

1 file changed

+2
-2
lines changed

packages/ui-components/src/Containers/MetaBar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ const MetaBar: FC<MetaBarProps> = ({
4949
<ol>
5050
{filteredHeadings.map(head => (
5151
<li
52-
key={head.value}
52+
key={head.data?.id}
5353
className={
5454
head.depth === 3 ? 'pl-2' : head.depth === 4 ? 'pl-4' : ''
5555
}
5656
>
57-
<Component href={`#${head?.data?.id}`}>
57+
<Component href={`#${head.data?.id}`}>
5858
{' '}
5959
{head.value}
6060
</Component>

0 commit comments

Comments
 (0)