mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix issue with "this"
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
070750e736
commit
ecb93393d1
@ -71,7 +71,7 @@ class NonInjectedNamespaceSelectFilter extends React.Component<SelectProps & Dep
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
formatOptionLabel({ value: namespace, label }: SelectOption) {
|
formatOptionLabel = ({ value: namespace, label }: SelectOption) => {
|
||||||
if (namespace) {
|
if (namespace) {
|
||||||
const isSelected = this.props.namespaceStore.hasContext(namespace);
|
const isSelected = this.props.namespaceStore.hasContext(namespace);
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ class NonInjectedNamespaceSelectFilter extends React.Component<SelectProps & Dep
|
|||||||
}
|
}
|
||||||
|
|
||||||
return label;
|
return label;
|
||||||
}
|
};
|
||||||
|
|
||||||
@action
|
@action
|
||||||
onChange = ([{ value: namespace }]: SelectOption[]) => {
|
onChange = ([{ value: namespace }]: SelectOption[]) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user