From 38b8d1a9e661ce666a22db5e540a57335a2ac4f7 Mon Sep 17 00:00:00 2001 From: Fergus Bentley Date: Wed, 20 Sep 2023 19:00:14 +0100 Subject: [PATCH] fix: :bug: react keying issue in element list --- src/components/LearningObjectives.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/LearningObjectives.js b/src/components/LearningObjectives.js index 5cccc75..544d95e 100644 --- a/src/components/LearningObjectives.js +++ b/src/components/LearningObjectives.js @@ -5,8 +5,8 @@ export default function LearningObjectives({ children, objectives }) { <>

✅ Learning Objectives

    - {objectives.map((obj) => { - return
  1. {obj}
  2. ; + {objectives.map((obj, i) => { + return
  3. {obj}
  4. ; })}
{children}