Skip to content

Commit 32c9ce1

Browse files
committed
fixed unique key issue
1 parent fe5bee5 commit 32c9ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/countries/[code].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const Country = ({ country }) => {
100100
variants={countryImageVariants}
101101
animate="visible"
102102
initial="hidden"
103-
key={router.query.code}
103+
key={router.asPath}
104104
className="my-3 md:my-0 focus-visible:outline-none cursor-default block mb-8 sm:mb-0">
105105
<Image
106106
objectFit="fill"

0 commit comments

Comments
 (0)