diff --git a/x-pack/plugins/infra/public/components/asset_details/tabs/overview/overview.tsx b/x-pack/plugins/infra/public/components/asset_details/tabs/overview/overview.tsx
index 47dc6016cc953..04f76c3c4de80 100644
--- a/x-pack/plugins/infra/public/components/asset_details/tabs/overview/overview.tsx
+++ b/x-pack/plugins/infra/public/components/asset_details/tabs/overview/overview.tsx
@@ -55,36 +55,6 @@ export const Overview = ({
metadata,
} = useMetadata(nodeName, nodeType, inventoryModel.requiredMetrics, sourceId, currentTimeRange);
- if (fetchMetadataError) {
- return (
-
- window.location.reload()}
- >
- {i18n.translate('xpack.infra.assetDetailsEmbeddable.overview.errorAction', {
- defaultMessage: 'reload the page',
- })}
-
- ),
- }}
- />
-
- );
- }
-
return (
@@ -95,9 +65,36 @@ export const Overview = ({
/>
-
+ {fetchMetadataError ? (
+
+ window.location.reload()}
+ >
+ {i18n.translate('xpack.infra.assetDetailsEmbeddable.overview.errorAction', {
+ defaultMessage: 'reload the page',
+ })}
+
+ ),
+ }}
+ />
+
+ ) : (
+
+ )}
-
);
};