File tree 1 file changed +3
-1
lines changed 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import Box from '@mui/material/Box';
18
18
import Divider from '@mui/material/Divider' ;
19
19
import { useTheme } from '@mui/material/styles' ;
20
20
import useMediaQuery from '@mui/material/useMediaQuery' ;
21
+ import cloneDeep from 'lodash/cloneDeep' ;
21
22
import { useTranslation } from 'react-i18next' ;
22
23
import { generatePath , useHistory } from 'react-router' ;
23
24
import { getCluster , getClusterPrefixedPath } from '../../lib/cluster' ;
@@ -67,7 +68,8 @@ export default function NavigationTabs() {
67
68
let defaultIndex = null ;
68
69
const listItemsOriginal = useSidebarItems ( sidebar . selected . sidebar ?? undefined ) ;
69
70
// Making a copy because we're going to mutate it later in here
70
- const listItems = structuredClone ( listItemsOriginal ) ;
71
+ const listItems = cloneDeep ( listItemsOriginal ) ;
72
+
71
73
let navigationItem = listItems . find ( item => item . name === sidebar . selected . item ) ;
72
74
if ( ! navigationItem ) {
73
75
const parent = findParentOfSubList ( listItems , sidebar . selected . item ) ;
You can’t perform that action at this time.
0 commit comments