aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/MapDirection.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-01 17:56:59 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-01 17:56:59 -0700
commitb1961a111581e9958c823087429b98f77318607e (patch)
tree63ec4af6441b1895d46fbedb5013d6377e9decbf /modern/src/map/MapDirection.js
parenta78261fee1483e447c3d162f2961aac7b5df65e8 (diff)
downloadtrackermap-web-b1961a111581e9958c823087429b98f77318607e.tar.gz
trackermap-web-b1961a111581e9958c823087429b98f77318607e.tar.bz2
trackermap-web-b1961a111581e9958c823087429b98f77318607e.zip
Migrate to generated map ids
Diffstat (limited to 'modern/src/map/MapDirection.js')
-rw-r--r--modern/src/map/MapDirection.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/map/MapDirection.js b/modern/src/map/MapDirection.js
index 7897cda7..2ccd508b 100644
--- a/modern/src/map/MapDirection.js
+++ b/modern/src/map/MapDirection.js
@@ -1,10 +1,9 @@
-import { useEffect } from 'react';
+import { useId, useEffect } from 'react';
import { useAttributePreference } from '../common/util/preferences';
-
import { map } from './core/MapView';
const MapDirection = ({ position }) => {
- const id = 'directions';
+ const id = useId();
const iconScale = useAttributePreference('iconScale', 1);