aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());