diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 16:13:58 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 16:13:58 -0800 |
commit | ec8fed96e394ff252c7e98bed1ca2e5322ad650a (patch) | |
tree | 447c6e6946935047763bc2dd8cb50ae8c5ea4fbe /modern/src/reports/TripReportPage.js | |
parent | bcef1fda0756f0ef1afbb53c26f6cbab4dcfeba8 (diff) | |
download | trackermap-web-ec8fed96e394ff252c7e98bed1ca2e5322ad650a.tar.gz trackermap-web-ec8fed96e394ff252c7e98bed1ca2e5322ad650a.tar.bz2 trackermap-web-ec8fed96e394ff252c7e98bed1ca2e5322ad650a.zip |
More cleanup
Diffstat (limited to 'modern/src/reports/TripReportPage.js')
-rw-r--r-- | modern/src/reports/TripReportPage.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js index 15e21f5f..bb987e1b 100644 --- a/modern/src/reports/TripReportPage.js +++ b/modern/src/reports/TripReportPage.js @@ -9,11 +9,7 @@ import { useAttributePreference } from '../common/preferences'; const ReportFilterForm = ({ onResult }) => { const handleSubmit = async (deviceId, from, to) => { - const query = new URLSearchParams({ - deviceId, - from: from.toISOString(), - to: to.toISOString(), - }); + const query = new URLSearchParams({ deviceId, from, to }); const response = await fetch(`/api/reports/trips?${query.toString()}`, { headers: { Accept: 'application/json' } }); if (response.ok) { onResult(await response.json()); |