Skip to content

Commit

Permalink
fix: 🐛 react keying issue in element list
Browse files Browse the repository at this point in the history
  • Loading branch information
fergcb committed Sep 20, 2023
1 parent 08eb9ff commit 38b8d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/LearningObjectives.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default function LearningObjectives({ children, objectives }) {
<>
<h2>✅ Learning Objectives</h2>
<ol>
{objectives.map((obj) => {
return <li>{obj}</li>;
{objectives.map((obj, i) => {
return <li key={i}>{obj}</li>;
})}
</ol>
<div>{children}</div>
Expand Down

0 comments on commit 38b8d1a

Please sign in to comment.