From 4be0075b96ca418b1138bfc816cbf6ea9c07be03 Mon Sep 17 00:00:00 2001 From: Jenny Date: Thu, 14 Nov 2024 17:52:30 +0100 Subject: [PATCH] [Infra] Change order of the errors shown on Infra pages --- .../components/shared/templates/infra_page_template.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/observability_solution/infra/public/components/shared/templates/infra_page_template.tsx b/x-pack/plugins/observability_solution/infra/public/components/shared/templates/infra_page_template.tsx index b7318c736843a..61130564a2753 100644 --- a/x-pack/plugins/observability_solution/infra/public/components/shared/templates/infra_page_template.tsx +++ b/x-pack/plugins/observability_solution/infra/public/components/shared/templates/infra_page_template.tsx @@ -98,12 +98,12 @@ export const InfraPageTemplate = ({ }); }, [hasData, setScreenContext, source]); - if (!isSourceLoading && !remoteClustersExist) { - return ; + if (sourceError) { + return ; } - if (sourceError) { - ; + if (!isSourceLoading && !remoteClustersExist) { + return ; } if (dataViewLoadError) {