diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-28 11:32:39 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-28 11:32:39 -0700 |
commit | 8ee49a58332b1e7d11262e006e42098882b9a87b (patch) | |
tree | 15d1f32d8c247d8c516b96c99bff8119bca32be4 | |
parent | b0ff8b904d1f48087da4c7c86849829e899a6281 (diff) | |
download | trackermap-web-8ee49a58332b1e7d11262e006e42098882b9a87b.tar.gz trackermap-web-8ee49a58332b1e7d11262e006e42098882b9a87b.tar.bz2 trackermap-web-8ee49a58332b1e7d11262e006e42098882b9a87b.zip |
Fix route report
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index 33bc9350..5796e80c 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -28,10 +28,8 @@ const RouteReportPage = () => { const [items, setItems] = useState([]); const [selectedItem, setSelectedItem] = useState(null); - 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/route?${query.toString()}`, { headers }); if (response.ok) { const contentType = response.headers.get('content-type'); |