Skip to content

Commit

Permalink
Merge pull request #520 from InseeFr/v2/fix/visu-with-auth
Browse files Browse the repository at this point in the history
V2: fix visu with auth
  • Loading branch information
ddecrulle authored Jan 9, 2024
2 parents 8803fed + fa706f6 commit f67b2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stromae",
"version": "2.4.14",
"version": "2.4.15",
"description": "Web application for the management of questionnaires powered by Lunatic",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/hooks/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const useGetReferentiel = (nomenclatures) => {
const getReferentielForVizu = useConstCallback((refName) => {
if (nomenclatures && Object.keys(nomenclatures).includes(refName)) {
const finalUrl = nomenclatures[refName];
return getFetcherForLunatic(oidc.getTokens().accessToken)(finalUrl);
return getFetcherForLunatic(null)(finalUrl);
}
// No nomenclature, return empty array to lunatic
return Promise.resolve([]);
Expand Down

0 comments on commit f67b2f1

Please sign in to comment.