File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
frontend/src/components/App/Home Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,8 @@ export default function ClusterContextMenu({ cluster }: ClusterContextMenuProps)
153
153
>
154
154
< ListItemText > { t ( 'translation|Settings' ) } </ ListItemText >
155
155
</ MenuItem >
156
- { helpers . isElectron ( ) &&
156
+ { ( ! menuItems || menuItems . length === 0 ) &&
157
+ helpers . isElectron ( ) &&
157
158
( cluster . meta_data ?. source === 'dynamic_cluster' ||
158
159
cluster . meta_data ?. source === 'kubeconfig' ) && (
159
160
< MenuItem
@@ -165,7 +166,6 @@ export default function ClusterContextMenu({ cluster }: ClusterContextMenuProps)
165
166
< ListItemText > { t ( 'translation|Delete' ) } </ ListItemText >
166
167
</ MenuItem >
167
168
) }
168
-
169
169
{ menuItems . map ( ( Item , index ) => {
170
170
return (
171
171
< Item
You can’t perform that action at this time.
0 commit comments