From 181c565b3cb705e5f0f59e64addc2764c697e191 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 16 Nov 2024 04:16:10 +0200 Subject: [PATCH] Remove debugger statements and streamline error handling in MachineContainer --- .../src/features/machines/components/MachineContainer.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/features/machines/components/MachineContainer.tsx b/frontend/src/features/machines/components/MachineContainer.tsx index 9eced98..ba598d3 100644 --- a/frontend/src/features/machines/components/MachineContainer.tsx +++ b/frontend/src/features/machines/components/MachineContainer.tsx @@ -34,7 +34,6 @@ const MachineContainer: React.FC = ({ 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 = ({ machine, viewMode }) => { endpoints.network.machine.shutdown, mutationFetcher, { - onError: err => { - debugger; - blip.error(err.message); - }, + onError: err => blip.error(err.message), onSuccess: manageActionResponse } );