diff options
Diffstat (limited to 'modern/src/map/overlay/MapOverlay.js')
-rw-r--r-- | modern/src/map/overlay/MapOverlay.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/map/overlay/MapOverlay.js b/modern/src/map/overlay/MapOverlay.js index ec51c7c9..85797d4b 100644 --- a/modern/src/map/overlay/MapOverlay.js +++ b/modern/src/map/overlay/MapOverlay.js @@ -1,10 +1,10 @@ -import { useEffect } from 'react'; +import { useId, useEffect } from 'react'; import usePersistedState from '../../common/util/usePersistedState'; import { map } from '../core/MapView'; import useMapOverlays from './useMapOverlays'; const MapOverlay = () => { - const id = 'overlay'; + const id = useId(); const mapOverlays = useMapOverlays(); const [selectedMapOverlay] = usePersistedState('selectedMapOverlay'); |