mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
fix: Add index to Pagination key for uniqueness in starter-example (#1039)
This commit is contained in:
@@ -32,7 +32,7 @@ export default function Pagination({ totalPages }: { totalPages: number }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<PaginationNumber
|
<PaginationNumber
|
||||||
key={page}
|
key={`${page}-${index}`}
|
||||||
href={createPageURL(page)}
|
href={createPageURL(page)}
|
||||||
page={page}
|
page={page}
|
||||||
position={position}
|
position={position}
|
||||||
|
|||||||
Reference in New Issue
Block a user