diff --git a/frontend/src/api/projects.js b/frontend/src/api/projects.js index 663ca61fda..cc37c35748 100644 --- a/frontend/src/api/projects.js +++ b/frontend/src/api/projects.js @@ -53,8 +53,11 @@ export const useProjectQuery = (projectId) => { }); }; export const useProjectSummaryQuery = (projectId, otherOptions = {}) => { + const token = useSelector((state) => state.auth.token); + const locale = useSelector((state) => state.preferences['locale']); + const fetchProjectSummary = ({ signal }) => { - return api().get(`projects/${projectId}/queries/summary/`, { + return api(token, locale).get(`projects/${projectId}/queries/summary/`, { signal, }); };