Fela Maslen 7 лет назад
Родитель
Сommit
c0777fe0ab
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/reducers/crud.js

+ 1 - 1
src/reducers/crud.js

@@ -42,7 +42,7 @@ function updateDoc(routeDocs, index, id, pending, fields = {}) {
 }
 }
 
 
 function deleteDoc(docs, index) {
 function deleteDoc(docs, index) {
-    return docs.slice(0, index - 1)
+    return docs.slice(0, index)
         .concat(docs.slice(index + 1));
         .concat(docs.slice(index + 1));
 }
 }