From 7435bb86b53dec6a448a207860dddf0a077e28eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Fri, 20 Aug 2021 15:28:13 +0500 Subject: [PATCH] Add delete function into Documents --- src/pages/Documents/DocumentsTemplate.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Documents/DocumentsTemplate.jsx b/src/pages/Documents/DocumentsTemplate.jsx index f58c9a2..15e8eab 100644 --- a/src/pages/Documents/DocumentsTemplate.jsx +++ b/src/pages/Documents/DocumentsTemplate.jsx @@ -39,8 +39,8 @@ export default function DocumentsTemplate({ idCategory, idWell }) { update() } - const handleFileDelete = (file) => { - //FileService.delete(idWell, file.id) + const handleFileDelete = async (file) => { + await FileService.delete(idWell, file.id) update() }