Skip to content

Commit 53b0484

Browse files
author
Peter Bengtsson
authored
unique keys for RestRepoBanner links (#23764)
1 parent f11b827 commit 53b0484

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

components/page-header/RestRepoBanner.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from 'react'
12
import { Flash } from '@primer/components'
23
import { useRouter } from 'next/router'
34
import { Link } from 'components/Link'
@@ -35,12 +36,12 @@ export const RestRepoBanner = () => {
3536
keyof typeof restRepoCategoryExceptionsTitles
3637
>
3738
const newRestPagesText = pages.map((page, i) => [
38-
<>
39+
<React.Fragment key={page}>
3940
<Link href={`/${router.locale}/rest/reference/${page}`}>
4041
{restRepoCategoryExceptionsTitles[page]}
4142
</Link>
4243
{i < pages.length - 1 && ', '}
43-
</>,
44+
</React.Fragment>,
4445
])
4546

4647
return (

0 commit comments

Comments
 (0)