Remove debugger statements and streamline error handling in MachineContainer

master^2
Tudor Stanciu 2024-11-16 04:16:10 +02:00
parent 82a4750c76
commit 181c565b3c
1 changed files with 1 additions and 5 deletions

View File

@ -34,7 +34,6 @@ const MachineContainer: React.FC<Props> = ({ machine, viewMode }) => {
const manageActionResponse = useCallback(
(response: MachineActionResult) => {
debugger;
addLog(`Success: ${response.success}. Status: ${response.status}`);
if (response.success) {
blip.success(response.status);
@ -53,10 +52,7 @@ const MachineContainer: React.FC<Props> = ({ machine, viewMode }) => {
endpoints.network.machine.shutdown,
mutationFetcher<ShutdownMachine>,
{
onError: err => {
debugger;
blip.error(err.message);
},
onError: err => blip.error(err.message),
onSuccess: manageActionResponse
}
);