From e4cfd1f6d94ef0dc610888e91692533f35ca0eeb Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 19 Nov 2024 01:39:30 +1100 Subject: [PATCH] [8.x] [Infra] Change order of the errors shown on Infra pages (#200531) (#200554) # Backport This will backport the following commits from `main` to `8.x`: - [[Infra] Change order of the errors shown on Infra pages (#200531)](https://github.com/elastic/kibana/pull/200531) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: jennypavlova --- .../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) {