diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-28 11:11:11 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-28 11:11:11 -0700 |
commit | b0ff8b904d1f48087da4c7c86849829e899a6281 (patch) | |
tree | 845e2e929006a9fbe75e199ebbf8f7e87e4ebdd5 /modern/src/reports/TripReportPage.js | |
parent | 1f9806dc45dbeea3904a679bf38b92ca20a92d4a (diff) | |
download | trackermap-web-b0ff8b904d1f48087da4c7c86849829e899a6281.tar.gz trackermap-web-b0ff8b904d1f48087da4c7c86849829e899a6281.tar.bz2 trackermap-web-b0ff8b904d1f48087da4c7c86849829e899a6281.zip |
Multidevice summary report
Diffstat (limited to 'modern/src/reports/TripReportPage.js')
-rw-r--r-- | modern/src/reports/TripReportPage.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js index 47f91ee3..28ec8cc9 100644 --- a/modern/src/reports/TripReportPage.js +++ b/modern/src/reports/TripReportPage.js @@ -68,10 +68,8 @@ const TripReportPage = () => { } }, [selectedItem]); - const handleSubmit = useCatch(async (deviceId, from, to, mail, headers) => { - const query = new URLSearchParams({ - deviceId, from, to, mail, - }); + const handleSubmit = useCatch(async ({ deviceId, from, to, mail, headers }) => { + const query = new URLSearchParams({ deviceId, from, to, mail }); const response = await fetch(`/api/reports/trips?${query.toString()}`, { headers }); if (response.ok) { const contentType = response.headers.get('content-type'); |