F #3951: Add reload list after delete provision (#641)

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2021-01-14 17:40:46 +01:00
1 parent 25907eae22
commit 92e97426bd
1 file changed
+1
@@ -147,6 +147,7 @@ export default function useProvision () {
serviceProvision
.deleteProvision({ id })
.then(() => dispatch(enqueueSuccess(`Provision deleted - ID: ${id}`)))
.then(() => getProvisions())
.catch(err => dispatch(enqueueError(err ?? 'Error DELETE provision')))
, [dispatch]
)