aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/main/MapLiveRoutes.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/main/MapLiveRoutes.js')
-rw-r--r--modern/src/map/main/MapLiveRoutes.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/map/main/MapLiveRoutes.js b/modern/src/map/main/MapLiveRoutes.js
index e98bea74..d0f67a73 100644
--- a/modern/src/map/main/MapLiveRoutes.js
+++ b/modern/src/map/main/MapLiveRoutes.js
@@ -1,5 +1,4 @@
-import { useEffect, useState } from 'react';
-
+import { useId, useEffect, useState } from 'react';
import { useSelector } from 'react-redux';
import { useTheme } from '@mui/styles';
import { map } from '../core/MapView';
@@ -7,7 +6,7 @@ import { usePrevious } from '../../reactHelper';
import { useAttributePreference } from '../../common/util/preferences';
const MapLiveRoutes = () => {
- const id = 'liveRoute';
+ const id = useId();
const theme = useTheme();