♻️ 🧹 upsert reciient, deleteRecipient, send

This commit is contained in:
Timur Ercan
2023-03-01 15:41:43 +01:00
parent 891f032468
commit 10b81bc757
8 changed files with 119 additions and 106 deletions

View File

@ -351,7 +351,6 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
const removedItem: any =
documentsWithoutIndex.splice(index, 1);
setDocuments(documentsWithoutIndex);
// todo encapsulate
deleteDocument(document.id)
.catch((err) => {
documentsWithoutIndex.splice(