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()
|
update()
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleFileDelete = (file) => {
|
const handleFileDelete = async (file) => {
|
||||||
//FileService.delete(idWell, file.id)
|
await FileService.delete(idWell, file.id)
|
||||||
update()
|
update()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user