diff options
Diffstat (limited to 'modern/src/map/main/PoiMap.js')
-rw-r--r-- | modern/src/map/main/PoiMap.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/map/main/PoiMap.js b/modern/src/map/main/PoiMap.js index f3b4eea2..0d94ca15 100644 --- a/modern/src/map/main/PoiMap.js +++ b/modern/src/map/main/PoiMap.js @@ -1,6 +1,5 @@ -import { useEffect, useState } from 'react'; +import { useId, useEffect, useState } from 'react'; import { kml } from '@tmcw/togeojson'; - import { useTheme } from '@mui/styles'; import { map } from '../core/MapView'; import { useEffectAsync } from '../../reactHelper'; @@ -8,7 +7,7 @@ import { usePreference } from '../../common/util/preferences'; import { findFonts } from '../core/mapUtil'; const PoiMap = () => { - const id = 'poi'; + const id = useId(); const theme = useTheme(); |