Fela Maslen пре 7 година
родитељ
комит
2cf855b3dc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/reducers/crud.js

+ 1 - 1
src/reducers/crud.js

@@ -30,7 +30,7 @@ function updateDoc(routeDocs, index, id, pending, fields = {}) {
     }
 
     return [
-        ...routeDocs.slice(0, index - 1),
+        ...routeDocs.slice(0, index),
         {
             ...routeDocs[index],
             id,