From 70adbe0793d607599ba12ff2ee74e28ab4f632c4 Mon Sep 17 00:00:00 2001 From: jennypavlova Date: Mon, 18 Nov 2024 16:58:10 +0100 Subject: [PATCH] [8.15] [Infra] Change order of the errors shown on Infra pages (#200531) (#200575) # Backport This will backport the following commits from `main` to `8.15`: - [[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) --- .../infra/public/pages/metrics/page_template.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/observability_solution/infra/public/pages/metrics/page_template.tsx b/x-pack/plugins/observability_solution/infra/public/pages/metrics/page_template.tsx index d48b77404767d..85c91b7eac851 100644 --- a/x-pack/plugins/observability_solution/infra/public/pages/metrics/page_template.tsx +++ b/x-pack/plugins/observability_solution/infra/public/pages/metrics/page_template.tsx @@ -95,12 +95,12 @@ export const MetricsPageTemplate: React.FC = if (isLoading && !source) return ; - if (!remoteClustersExist) { - return ; + if (sourceError) { + return ; } - if (sourceError) { - ; + if (!isLoading && !remoteClustersExist) { + return ; } if (dataViewLoadError) {