From f7520a6a4325b95498cbe39d8ff8998f7fe85ae6 Mon Sep 17 00:00:00 2001 From: Irene Blanco Date: Wed, 28 Aug 2024 11:58:14 +0200 Subject: [PATCH] [Infra][Hosts] Remove unnecessary code added for local testing (#191572) ## Summary Small PR to remove code that was mistakenly merged for local testing. --- .../public/pages/metrics/hosts/hooks/use_hosts_table.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/x-pack/plugins/observability_solution/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx b/x-pack/plugins/observability_solution/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx index e881950df570c..dece3437e3e1d 100644 --- a/x-pack/plugins/observability_solution/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx +++ b/x-pack/plugins/observability_solution/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx @@ -82,14 +82,6 @@ const buildMetricCell = ( }; const buildItemsList = (nodes: InfraAssetMetricsItem[]): HostNodeRow[] => { - nodes.map((node) => { - if (node.name === 'instance') { - node.metrics[0].value = 0; - node.hasSystemMetrics = true; - } - return node; - }); - return nodes.map(({ metrics, metadata, name, alertsCount, hasSystemMetrics }) => { const metadataKeyValue = metadata.reduce( (acc, curr) => ({