From af75b136a629669b4bdd66771f7c07ec8570adb9 Mon Sep 17 00:00:00 2001 From: Joel Guerra Date: Wed, 27 Nov 2024 13:43:47 +0100 Subject: [PATCH] fix: metrics headers --- .../DataViews/components/Metrics/useValuesFromMetrics.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/main/src/components/DataViews/components/Metrics/useValuesFromMetrics.ts b/packages/main/src/components/DataViews/components/Metrics/useValuesFromMetrics.ts index 58cd62e3..75957473 100644 --- a/packages/main/src/components/DataViews/components/Metrics/useValuesFromMetrics.ts +++ b/packages/main/src/components/DataViews/components/Metrics/useValuesFromMetrics.ts @@ -34,9 +34,9 @@ export function useValuesFromMetrics(id: any, start, stop) { // setLoading(true); try { - const req = await axios.get(url, { - ...metricsHeaders.options, - }); + const req = await axios.get(url, + metricsHeaders, + ); if (req?.status === 200) { setMetricNames(req?.data?.data || []); }