1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

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

This commit is contained in:
Sergio Betanzos 2021-01-14 17:40:46 +01:00 committed by GitHub
parent 25907eae22
commit 92e97426bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]
)