From 4ef1ba84d21d5fe42f1a077e7cc45b806d865e6d Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 26 Mar 2021 09:40:19 -0400 Subject: [PATCH] Change error reporting component Signed-off-by: Adam Harvey --- .../components/SystemDiagramCard/SystemDiagramCard.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx b/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx index 9ec0e47bee..df20e910aa 100644 --- a/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx +++ b/plugins/catalog/src/components/SystemDiagramCard/SystemDiagramCard.tsx @@ -31,7 +31,7 @@ import { InfoCard, Progress, useApi, - WarningPanel, + ResponseErrorPanel, } from '@backstage/core'; import { Box, Typography } from '@material-ui/core'; import ZoomOutMap from '@material-ui/icons/ZoomOutMap'; @@ -138,11 +138,7 @@ export function SystemDiagramCard() { if (loading) { return ; } else if (error) { - return ( - - {error.message} - - ); + return ; } return (