From b1ee86710147fac0b2383ef5aa7de956277ad44a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linn=C3=A9a=20Ivansson?= Date: Mon, 21 Nov 2022 14:42:01 +0100 Subject: [PATCH] Remove conditional rendering for ErrorEmptyState. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Linnéa Ivansson --- .../src/components/ErrorReporting/ErrorReporting.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx b/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx index 0dbf889fab..3bb1a81b1d 100644 --- a/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx +++ b/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx @@ -123,18 +123,14 @@ export const ErrorReporting = ({ detectedErrors }: ErrorReportingProps) => { return ( <> - {errors.length === 0 ? ( - - - - ) : ( + {errors.length !== 0 && - )} + } ); };