Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 640263c

Browse files
committed
fix(plugins/plugin-kubectl): kubernetes CurrentContext widget may display as empty
Fixes #6392
1 parent e534cbc commit 640263c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plugins/plugin-kubectl/components/src/CurrentContext.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ export default class CurrentContext extends React.PureComponent<{}, State> {
169169
}
170170

171171
public render() {
172-
// FIXME disable the on-hover effect with the icon
172+
if (this.state.allContexts.length === 0) {
173+
return <React.Fragment />
174+
}
175+
173176
return (
174177
<DropdownWidget
175178
position="left"

plugins/plugin-kubectl/components/src/CurrentNamespace.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ export default class CurrentNamespace extends React.PureComponent<{}, State> {
147147
}
148148

149149
public render() {
150-
// FIXME disable the on-hover effect with the icon
151150
if (this.state.allNamespaces.length === 0) {
152151
return <React.Fragment />
153152
}

0 commit comments

Comments
 (0)