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) {