diff options
Diffstat (limited to 'modern/src/map/MapDirection.js')
-rw-r--r-- | modern/src/map/MapDirection.js | 5 |
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); |