aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/main/MapGeofence.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/main/MapGeofence.js')
-rw-r--r--modern/src/map/main/MapGeofence.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/map/main/MapGeofence.js b/modern/src/map/main/MapGeofence.js
index 3dafa639..6cfe9b61 100644
--- a/modern/src/map/main/MapGeofence.js
+++ b/modern/src/map/main/MapGeofence.js
@@ -1,12 +1,11 @@
-import { useEffect } from 'react';
+import { useId, useEffect } from 'react';
import { useSelector } from 'react-redux';
-
import { useTheme } from '@mui/styles';
import { map } from '../core/MapView';
import { findFonts, geofenceToFeature } from '../core/mapUtil';
const MapGeofence = () => {
- const id = 'geofences';
+ const id = useId();
const theme = useTheme();