forked from ddrilling/asb_cloud_front
Add delete function into Documents
This commit is contained in:
parent
43e69021d4
commit
7435bb86b5
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user