|
@@ -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));
|
|
|
}
|
|
}
|
|
|
|
|
|