Skip to content

Commit

Permalink
suggester referentiel relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle authored Mar 5, 2024
1 parent c469cd4 commit 9574419
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stories/suggester/Suggester.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export default stories;
async function getReferentiel(name: string) {
switch (name) {
case "libelles-pcs-2020":
return fetch("/json/libelles-pcs-2020.json").then(r => r.json());
return fetch("./json/libelles-pcs-2020.json").then(r => r.json());
case "naf-rev2":
return fetch("/json/naf-rev2.json").then(r => r.json());
return fetch("./json/naf-rev2.json").then(r => r.json());
case "pays":
return fetch("/json/pays.json").then(r => r.json());
return fetch("./json/pays.json").then(r => r.json());
}
}

Expand Down

0 comments on commit 9574419

Please sign in to comment.