diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-04 15:22:15 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-04 15:22:15 -0700 |
commit | ec213b4d4dbe9a25bfaa26d49bf5b6ffee0632bc (patch) | |
tree | ea537100e88be08f3e71e9a4ea8becac6c93f2f8 /modern/src/other | |
parent | f66fca5d39b2bb3684cbaee3e023d32c4252be3f (diff) | |
download | trackermap-web-ec213b4d4dbe9a25bfaa26d49bf5b6ffee0632bc.tar.gz trackermap-web-ec213b4d4dbe9a25bfaa26d49bf5b6ffee0632bc.tar.bz2 trackermap-web-ec213b4d4dbe9a25bfaa26d49bf5b6ffee0632bc.zip |
Simplify positions request
Diffstat (limited to 'modern/src/other')
-rw-r--r-- | modern/src/other/ReplayPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js index 7db751b2..aaffc889 100644 --- a/modern/src/other/ReplayPage.js +++ b/modern/src/other/ReplayPage.js @@ -120,12 +120,12 @@ const ReplayPage = () => { } }, [index, positions]); - const handleSubmit = useCatch(async ({ deviceId, from, to, headers }) => { + const handleSubmit = useCatch(async ({ deviceId, from, to }) => { setSelectedDeviceId(deviceId); setFrom(from); setTo(to); const query = new URLSearchParams({ deviceId, from, to }); - const response = await fetch(`/api/positions?${query.toString()}`, { headers }); + const response = await fetch(`/api/positions?${query.toString()}`); if (response.ok) { setIndex(0); const positions = await response.json(); |