From 0b914bab081344fc1d2fc8c67fdcc1bc8e2f09ce Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Tue, 10 Oct 2023 22:18:47 -0400 Subject: [PATCH] fix: fixed API querystring param for repo_id for treemap API call --- lib/hooks/api/useContributorsByProject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hooks/api/useContributorsByProject.ts b/lib/hooks/api/useContributorsByProject.ts index 34a2bdbc8d..18677a0214 100644 --- a/lib/hooks/api/useContributorsByProject.ts +++ b/lib/hooks/api/useContributorsByProject.ts @@ -5,7 +5,7 @@ import publicApiFetcher from "lib/utils/public-api-fetcher"; export const useContributorsByProject = (listId: string, range: number) => { const [repoId, setRepoId] = useState(null); const { data, error } = useSWR( - `lists/${listId}/stats/top-project-contributions-by-contributor?repoId=${repoId}&range=${range}`, + `lists/${listId}/stats/top-project-contributions-by-contributor?repo_id=${repoId}&range=${range}`, publicApiFetcher as Fetcher );