mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
39e27b18e4
commit
d34b885710
1 file changed
+3
-7
@@ -107,13 +107,9 @@ export class NamespaceSelectFilter extends React.Component<SelectProps> {
|
||||
}
|
||||
|
||||
formatOptionLabel({ value: namespace, label }: SelectOption) {
|
||||
let isSelected = false;
|
||||
|
||||
if (namespace) {
|
||||
isSelected = !namespaceStore.areAllSelectedImplicitly && namespaceStore.hasContext(namespace);
|
||||
} else {
|
||||
isSelected = namespaceStore.areAllSelectedImplicitly;
|
||||
}
|
||||
const isSelected = namespace
|
||||
? !namespaceStore.areAllSelectedImplicitly && namespaceStore.hasContext(namespace)
|
||||
: namespaceStore.areAllSelectedImplicitly;
|
||||
|
||||
return (
|
||||
<div className="flex gaps align-center">
|
||||
|
||||
Reference in new issue
Block a user