diff options
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/components/pages/summary.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/pages/summary.js b/frontend/src/components/pages/summary.js index c628dd4..2665d66 100644 --- a/frontend/src/components/pages/summary.js +++ b/frontend/src/components/pages/summary.js | |||
| @@ -18,7 +18,7 @@ const fakedata={} //for debug | |||
| 18 | //fetching data | 18 | //fetching data |
| 19 | const [data, setData] = React.useState(null); | 19 | const [data, setData] = React.useState(null); |
| 20 | React.useEffect(() => { | 20 | React.useEffect(() => { |
| 21 | fetch(`/api/v1/maps/${location.pathname.split('/')[2]}/summary`) | 21 | fetch(`https://lp.ardapektezol.com/api/v1/maps/${location.pathname.split('/')[2]}/summary`) |
| 22 | .then(r => r.json()) | 22 | .then(r => r.json()) |
| 23 | .then(d => { | 23 | .then(d => { |
| 24 | if(Object.keys(fakedata).length!==0){setData(fakedata)} | 24 | if(Object.keys(fakedata).length!==0){setData(fakedata)} |