diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-08 16:52:45 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-08 16:52:45 -0700 |
commit | 9200986d36b88f549ed40606246d4ef08c93f18f (patch) | |
tree | 1e1a2265ad4115af4af8b382bea7a956a89d4156 /modern/src/reports/StatisticsPage.js | |
parent | cbb5a320802031c102818f8221d853f8181b54f3 (diff) | |
download | trackermap-web-9200986d36b88f549ed40606246d4ef08c93f18f.tar.gz trackermap-web-9200986d36b88f549ed40606246d4ef08c93f18f.tar.bz2 trackermap-web-9200986d36b88f549ed40606246d4ef08c93f18f.zip |
Improve reports handling
Diffstat (limited to 'modern/src/reports/StatisticsPage.js')
-rw-r--r-- | modern/src/reports/StatisticsPage.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/reports/StatisticsPage.js b/modern/src/reports/StatisticsPage.js index eb6130c7..254a912d 100644 --- a/modern/src/reports/StatisticsPage.js +++ b/modern/src/reports/StatisticsPage.js @@ -39,7 +39,7 @@ const StatisticsPage = () => { setLoading(true); try { const query = new URLSearchParams({ from, to }); - const response = await fetch(`/api/statistics?${query.toString()}`, { Accept: 'application/json' }); + const response = await fetch(`/api/statistics?${query.toString()}`); if (response.ok) { setItems(await response.json()); } else { |