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 || []); }