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() }