From def690b28263fd35a0109b72f13902adb412adfc Mon Sep 17 00:00:00 2001 From: Stuart Taylor Date: Sat, 23 Dec 2017 11:53:34 +0000 Subject: [PATCH] fix(step-challenge): Fix duplicate keys in Step --- common/app/routes/Challenges/views/step/Step.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/app/routes/Challenges/views/step/Step.jsx b/common/app/routes/Challenges/views/step/Step.jsx index 1038350dda..477b68fb8c 100644 --- a/common/app/routes/Challenges/views/step/Step.jsx +++ b/common/app/routes/Challenges/views/step/Step.jsx @@ -177,13 +177,13 @@ export class StepChallenge extends PureComponent { step, stepBackward, stepForward - }) { + }, index) { if (!Array.isArray(step)) { return null; } const [imgUrl, imgAlt, info, action] = step; return ( -
+
( -
+ return steps.map(([ imgUrl, imgAlt ], index) => ( +