From ccf21f9d9c38d5a64bc6773ff333daf0c24c5528 Mon Sep 17 00:00:00 2001 From: Nishitha Reddy Date: Sat, 3 Jan 2026 13:30:33 +0530 Subject: [PATCH 1/4] Fix unstable key usage in protocol card list --- app/protocols/page.tsx | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/app/protocols/page.tsx b/app/protocols/page.tsx index d708ecc..327c6d7 100644 --- a/app/protocols/page.tsx +++ b/app/protocols/page.tsx @@ -93,26 +93,12 @@ export default function ProtocolsPage() {
+ - {/* -
-

- Protocols
Researched and Developed
by The Stable Order -

-

- -

-
- */} - {/* -

- Protocols -

- */}
{protocols1.map((protocol, index) => ( + Date: Sat, 3 Jan 2026 13:41:31 +0530 Subject: [PATCH 2/4] Remove unused index prop from Card component --- app/protocols/page.tsx | 4 ++-- components/card.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/protocols/page.tsx b/app/protocols/page.tsx index 327c6d7..6356889 100644 --- a/app/protocols/page.tsx +++ b/app/protocols/page.tsx @@ -98,13 +98,13 @@ export default function ProtocolsPage() {
{protocols1.map((protocol, index) => ( + ))}
diff --git a/components/card.tsx b/components/card.tsx index 210a872..8a9f270 100644 --- a/components/card.tsx +++ b/components/card.tsx @@ -2,14 +2,14 @@ import Image from "next/image" import Link from "next/link" interface Props { - index: number image: string title: string description: string link: string } -const Card: React.FC = ({ index, image, title, description, link }) => { +const Card: React.FC = ({ image, title, description, link }) => { + return (
Date: Sat, 3 Jan 2026 13:50:15 +0530 Subject: [PATCH 3/4] Use stable composite key for description line rendering --- components/card.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/card.tsx b/components/card.tsx index 8a9f270..6f4ba17 100644 --- a/components/card.tsx +++ b/components/card.tsx @@ -30,14 +30,15 @@ const Card: React.FC = ({ image, title, description, link }) => { {title}

- {description.split("\n").map((item, key) => { + {description.split("\n").map((item, index) => { return ( - - {item} -
-
+ + {item} +
+
) })} +

From 603e5b4b29becb939ce3213566db0fb32ff8c6d8 Mon Sep 17 00:00:00 2001 From: Nishitha Reddy Date: Sat, 3 Jan 2026 13:54:53 +0530 Subject: [PATCH 4/4] Use index key for static description line rendering --- components/card.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/components/card.tsx b/components/card.tsx index 6f4ba17..59518d7 100644 --- a/components/card.tsx +++ b/components/card.tsx @@ -30,14 +30,15 @@ const Card: React.FC = ({ image, title, description, link }) => { {title}

- {description.split("\n").map((item, index) => { + {description.split("\n").map((item, idx) => { return ( - - {item} -
-
- ) - })} + + {item} +
+
+ ) + })} +