From 01c39eec4a2f6df6eb8825eeeed981eddc1cc3cb Mon Sep 17 00:00:00 2001 From: Aakash Patel <aakashpatel25274@gmail.com> Date: Tue, 6 Feb 2024 06:15:38 -0500 Subject: [PATCH] Fix key attribute while showing links (#10179) Co-authored-by: Aakash Patel <hi@aakashpatel.in> --- pages/account/statistics/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/account/statistics/index.js b/pages/account/statistics/index.js index 15ff317615b..bcc5d5168a4 100644 --- a/pages/account/statistics/index.js +++ b/pages/account/statistics/index.js @@ -206,7 +206,7 @@ export default function Statistics({ data, profile, BASE_URL }) { <tbody className="divide-y divide-primary-low dark:divide-primary-medium bg-white dark:bg-primary-high"> {data.links && data.links.individual.map((link) => ( - <tr key={link.url}> + <tr key={link._id}> <td className="md:whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-primary-high dark:text-primary-low sm:pl-6 text-ellipsis overflow-hidden"> {session && session.accountType === "premium" && ( <Link href={`/account/statistics/link/${link._id}`}>