fix: fixed the expanded component not closing when redirecting from 'Add machine'
fix: use useEffect to correctly fix the not closing expanded row fix: pass added machine id to machine status via History props instead of url fix: avoid page reloading on confirmed actions
This commit is contained in:
parent
bd10a4048a
commit
b4898a92dc
5 changed files with 27 additions and 19 deletions
|
|
@ -87,8 +87,9 @@ const MachineDetailsRow = ({ it: machine, onActionSuccess }) => {
|
|||
setErrorMessage(errorMessage)
|
||||
},
|
||||
onCompleted: () => {
|
||||
onActionSuccess ? onActionSuccess() : window.location.reload()
|
||||
setConfirmActionDialogOpen(false)
|
||||
onActionSuccess && onActionSuccess()
|
||||
renameActionDialogOpen && setConfirmActionDialogOpen(false)
|
||||
confirmActionDialogOpen && setRenameActionDialogOpen(false)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue