From b0e3cfd028975e1f991f9b9984bdf421f8d0c9a5 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Sat, 18 Jul 2015 23:25:19 -0700 Subject: [PATCH] fix copy array because .reverse mutates! --- common/app/routes/Hikes/components/Question.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/routes/Hikes/components/Question.jsx b/common/app/routes/Hikes/components/Question.jsx index 2524aa6748..bc2dabc283 100644 --- a/common/app/routes/Hikes/components/Question.jsx +++ b/common/app/routes/Hikes/components/Question.jsx @@ -48,7 +48,7 @@ export default stampit(React, { // next questions does not exit // find next hike // - const nextHike = hikes + const nextHike = [].slice.call(hikes) // hikes is in oder of difficulty, lets get reverse order .reverse() // now lets find the hike with the difficulty right above this one