Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit 4160016

Browse files
authored
fix(contented-preview): with ContentNavigation non-unique react key (#553)
#### What this PR does / why we need it: As per title.
1 parent c700fee commit 4160016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/contented-preview/src/pages/_components/ContentNavigation.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function ContentNavigation({ sections, className }) {
4343
const isCurrentPath = linkPath === router.asPath || router.asPath + '/' === linkPath;
4444

4545
return (
46-
<li key={linkPath} className="relative">
46+
<li key={link.fileId} className="relative">
4747
<Link
4848
href={linkPath}
4949
className={clsx({

0 commit comments

Comments
 (0)