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/MapAccuracy.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modern/src/map/main/MapAccuracy.js') diff --git a/modern/src/map/main/MapAccuracy.js b/modern/src/map/main/MapAccuracy.js index 3c48c788..bec8bde8 100644 --- a/modern/src/map/main/MapAccuracy.js +++ b/modern/src/map/main/MapAccuracy.js @@ -1,12 +1,11 @@ -import { useEffect } from 'react'; +import { useId, useEffect } from 'react'; import { useSelector } from 'react-redux'; import circle from '@turf/circle'; - import { useTheme } from '@mui/styles'; import { map } from '../core/MapView'; const MapAccuracy = () => { - const id = 'accuracy'; + const id = useId(); const theme = useTheme(); -- cgit v1.2.3