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) {
|
formatOptionLabel({ value: namespace, label }: SelectOption) {
|
||||||
let isSelected = false;
|
const isSelected = namespace
|
||||||
|
? !namespaceStore.areAllSelectedImplicitly && namespaceStore.hasContext(namespace)
|
||||||
if (namespace) {
|
: namespaceStore.areAllSelectedImplicitly;
|
||||||
isSelected = !namespaceStore.areAllSelectedImplicitly && namespaceStore.hasContext(namespace);
|
|
||||||
} else {
|
|
||||||
isSelected = namespaceStore.areAllSelectedImplicitly;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex gaps align-center">
|
<div className="flex gaps align-center">
|
||||||
|
|||||||
Reference in new issue
Block a user