Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ const DeployedVersionManual = () => {
},
);
} catch (error) {
console.error('Failed to save version', error);
toast.error('Failed to save version:', {
description: mutationError?.message,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ const TestNotify: FC<TestNotifyProps> = ({ path, original, extras }) => {
setLastFetched(currentTime);
await testRefetch();
}
} catch (error) {
console.error('Failed to send notify:', error);
}
} catch (error) {}
};

// Icon for the test result.
Expand Down
1 change: 0 additions & 1 deletion web/ui/react-app/src/hooks/use-sortable-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export const useSortableServices = () => {
}));
})
.catch((error: unknown) => {
console.error('Failed to save order:', error);
toast.error('Failed to save order.', {
description: `Error: ${error instanceof Error ? error.message : String(error)}`,
});
Expand Down
6 changes: 6 additions & 0 deletions web/ui/react-app/src/modals/delete-confirm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { LoaderCircle } from 'lucide-react';
import { type FC, useCallback, useState } from 'react';
import { toast } from 'sonner';
import {
AlertDialog,
AlertDialogAction,
Expand Down Expand Up @@ -36,6 +37,11 @@ export const DeleteModal: FC<DeleteModalProps> = ({ disabled }) => {
setOpen(false);
hideModal();
},
onError: (error) => {
toast.error('Failed to delete service.', {
description: `Error: ${error instanceof Error ? error.message : String(error)}`,
});
},
});

// biome-ignore lint/correctness/useExhaustiveDependencies: mutate stable.
Expand Down
Loading