Skip to content
Snippets Groups Projects
Commit ab5dd302 authored by Aymeric Chaumont's avatar Aymeric Chaumont
Browse files

fixed route call in Graph.js

parent 14b3fd00
No related branches found
No related tags found
2 merge requests!29Time dependence,!28improve front
Pipeline #43936 passed
...@@ -16,9 +16,9 @@ export default function Graph({ place, type }) { ...@@ -16,9 +16,9 @@ export default function Graph({ place, type }) {
React.useEffect(() => { React.useEffect(() => {
axios axios
.get( .get(
`${process.env.REACT_APP_BASE_URL_BACK}/${encodeURIComponent(place)}/${encodeURIComponent( `${process.env.REACT_APP_BASE_URL_BACK}/${encodeURIComponent(
type, place,
)}_graph`, )}/stats/${encodeURIComponent(type)}_graph`,
) )
.then((response) => { .then((response) => {
setData(response.data); setData(response.data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment