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,