fix: remove onsettled callback after restart/update and set loader to false only in case of error
This commit is contained in:
parent
06099c0ae4
commit
2e5cb6b2b0
1 changed files with 2 additions and 6 deletions
|
@ -31,10 +31,8 @@ export const GeneralActions = () => {
|
|||
},
|
||||
onError: (error) => {
|
||||
updateDisclosure.close();
|
||||
toast.error(`Error updating instance: ${error.message}`);
|
||||
},
|
||||
onSettled: () => {
|
||||
setLoading(false);
|
||||
toast.error(`Error updating instance: ${error.message}`);
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -48,10 +46,8 @@ export const GeneralActions = () => {
|
|||
},
|
||||
onError: (error) => {
|
||||
restartDisclosure.close();
|
||||
toast.error(`Error restarting instance: ${error.message}`);
|
||||
},
|
||||
onSettled: () => {
|
||||
setLoading(false);
|
||||
toast.error(`Error restarting instance: ${error.message}`);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue