From f7632331144cbe1ccc6cf3690f1dd9885c6312a5 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Tue, 11 Mar 2025 11:07:18 -0600 Subject: [PATCH] udpate fetch data --- web/src/api/buster_rest/metrics/requests.ts | 2 +- web/src/components/features/sidebars/SidebarPrimary.tsx | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/web/src/api/buster_rest/metrics/requests.ts b/web/src/api/buster_rest/metrics/requests.ts index 0070a881e..f06688630 100644 --- a/web/src/api/buster_rest/metrics/requests.ts +++ b/web/src/api/buster_rest/metrics/requests.ts @@ -30,7 +30,7 @@ export const listMetrics_server = async (params: ListMetricsParams) => { }; export const getMetricData = async ({ id }: { id: string }) => { - return mainApi.get(`/metrics/data/${id}`).then((res) => res.data); + return mainApi.get(`/metrics/${id}/data`).then((res) => res.data); }; export const updateMetric = async (params: UpdateMetricParams) => { diff --git a/web/src/components/features/sidebars/SidebarPrimary.tsx b/web/src/components/features/sidebars/SidebarPrimary.tsx index 431d506c6..dcc0afdf6 100644 --- a/web/src/components/features/sidebars/SidebarPrimary.tsx +++ b/web/src/components/features/sidebars/SidebarPrimary.tsx @@ -17,6 +17,7 @@ import { useAppLayoutContextSelector } from '@/context/BusterAppLayout'; import { SupportModal } from '../modal/SupportModal'; import { InvitePeopleModal } from '../modal/InvitePeopleModal'; import { useMemoizedFn } from '@/hooks'; +import { SidebarUserFooter } from './SidebarUserFooter/SidebarUserFooter'; const topItems: ISidebarList = { items: [ @@ -130,7 +131,12 @@ export const SidebarPrimary = React.memo(() => { return ( <> - } activeItem={currentRoute} /> + } + activeItem={currentRoute} + footer={} + />