diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-09 08:47:40 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-09 08:47:40 -0700 |
commit | c99f9becbfca0fec8fa418302e3619cedaba48cd (patch) | |
tree | 74a9fc4d2f192105984af38be30e69b8fada1724 /modern/src | |
parent | 2a2f723da4f2b247f06cc766bde32659e054695c (diff) | |
download | trackermap-web-c99f9becbfca0fec8fa418302e3619cedaba48cd.tar.gz trackermap-web-c99f9becbfca0fec8fa418302e3619cedaba48cd.tar.bz2 trackermap-web-c99f9becbfca0fec8fa418302e3619cedaba48cd.zip |
Fix trip report map route
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/reports/TripReportPage.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js index 16bd3b00..4b8f4d40 100644 --- a/modern/src/reports/TripReportPage.js +++ b/modern/src/reports/TripReportPage.js @@ -56,7 +56,9 @@ const TripReportPage = () => { to: selectedItem.endTime, }); const response = await fetch(`/api/reports/route?${query.toString()}`, { - Accept: 'application/json', + headers: { + Accept: 'application/json', + }, }); if (response.ok) { setRoute(await response.json()); |