mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
39e27b18e4
commit
d34b885710
@ -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">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user