Skip to content

Commit

Permalink
Merge pull request #19 from gigapipehq/fix/metrics_request_token
Browse files Browse the repository at this point in the history
fix: metrics headers
  • Loading branch information
jacovinus authored Nov 27, 2024
2 parents 09d05f1 + af75b13 commit 7837e16
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 || []);
}
Expand Down

0 comments on commit 7837e16

Please sign in to comment.