aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-09 08:47:40 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-09 08:47:40 -0700
commitc99f9becbfca0fec8fa418302e3619cedaba48cd (patch)
tree74a9fc4d2f192105984af38be30e69b8fada1724 /modern
parent2a2f723da4f2b247f06cc766bde32659e054695c (diff)
downloadtrackermap-web-c99f9becbfca0fec8fa418302e3619cedaba48cd.tar.gz
trackermap-web-c99f9becbfca0fec8fa418302e3619cedaba48cd.tar.bz2
trackermap-web-c99f9becbfca0fec8fa418302e3619cedaba48cd.zip
Fix trip report map route
Diffstat (limited to 'modern')
-rw-r--r--modern/src/reports/TripReportPage.js4
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());