Skip to content

Commit

Permalink
fix key used for list item
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed May 23, 2024
1 parent d83c537 commit 5f520dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Medicine/PrescriptionBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export default function PrescriptionBuilder({
/>
)}
<div className="flex flex-col gap-3">
{data?.results.map((obj, index) => (
{data?.results.map((obj) => (
<PrescriptionDetailCard
key={index}
key={obj.id}
prescription={obj}
collapsible
onDiscontinueClick={() => setShowDiscontinueFor(obj)}
Expand Down

0 comments on commit 5f520dc

Please sign in to comment.