File tree 1 file changed +3
-0
lines changed
frontend/src/components/common/Resource
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import React from 'react';
3
3
import { useTranslation } from 'react-i18next' ;
4
4
import { useDispatch } from 'react-redux' ;
5
5
import { useLocation } from 'react-router' ;
6
+ import helpers from '../../../helpers' ;
6
7
import { setSelectedResource } from '../../../redux/drawerModeSlice' ;
7
8
import { useTypedSelector } from '../../../redux/reducers/reducers' ;
8
9
import { KubeObjectDetails } from '../../resourceMap/details/KubeNodeDetails' ;
@@ -18,6 +19,8 @@ export default function DetailsDrawer() {
18
19
const isDetailDrawerEnabled = useTypedSelector ( state => state . drawerMode . isDetailDrawerEnabled ) ;
19
20
20
21
function handleCloseDrawerReset ( ) {
22
+ if ( helpers . isElectron ( ) ) return ;
23
+
21
24
const currentPlacement = location . pathname ;
22
25
const pathname = currentPlacement ;
23
26
You can’t perform that action at this time.
0 commit comments