From b1961a111581e9958c823087429b98f77318607e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 1 Aug 2022 17:56:59 -0700 Subject: Migrate to generated map ids --- modern/src/map/main/PoiMap.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modern/src/map/main/PoiMap.js') 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(); -- cgit v1.2.3