diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-31 16:58:39 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-31 16:58:39 -0700 |
commit | 194d0502b0c042c0f640cd8ab55da5efb86d14c9 (patch) | |
tree | d6b487380f6ad2cf0b109de92156fd08e39d2488 /modern/src/other | |
parent | a2a8644deefc80c920b05e3bbb36efb60cfc88f8 (diff) | |
download | trackermap-web-194d0502b0c042c0f640cd8ab55da5efb86d14c9.tar.gz trackermap-web-194d0502b0c042c0f640cd8ab55da5efb86d14c9.tar.bz2 trackermap-web-194d0502b0c042c0f640cd8ab55da5efb86d14c9.zip |
Deselect on map click
Diffstat (limited to 'modern/src/other')
-rw-r--r-- | modern/src/other/ReplayPage.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js index aaffc889..e49835d6 100644 --- a/modern/src/other/ReplayPage.js +++ b/modern/src/other/ReplayPage.js @@ -98,7 +98,9 @@ const ReplayPage = () => { }); const onClick = useCallback((positionId) => { - navigate(`/position/${positionId}`); + if (positionId) { + navigate(`/position/${positionId}`); + } }, [navigate]); useEffect(() => { |