From af700a3b86d38a0dab53af68157baa8e519ccfad Mon Sep 17 00:00:00 2001 From: Phillip Burch Date: Thu, 19 Nov 2020 13:47:21 -0600 Subject: [PATCH] Fix eslint --- .../components/node_details/tabs/metrics/metrics.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/node_details/tabs/metrics/metrics.tsx b/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/node_details/tabs/metrics/metrics.tsx index d67bcad3a54a8..b5628b0a7c9b4 100644 --- a/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/node_details/tabs/metrics/metrics.tsx +++ b/x-pack/plugins/infra/public/pages/metrics/inventory_view/components/node_details/tabs/metrics/metrics.tsx @@ -81,10 +81,8 @@ const TabComponent = (props: TabProps) => { filter = convertKueryToElasticSearchQuery(filter, derivedIndexPattern); } - const buildCustomMetric = useCallback( (field: string, id: string) => ({ - type: 'custom' as SnapshotMetricType, aggregation: 'avg', field,