1
0
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:
Janne Savolainen 2022-01-11 16:18:08 +02:00
parent 070750e736
commit ecb93393d1
No known key found for this signature in database
GPG Key ID: 5F465B5672372402

View File

@ -71,7 +71,7 @@ class NonInjectedNamespaceSelectFilter extends React.Component<SelectProps & Dep
]);
}
formatOptionLabel({ value: namespace, label }: SelectOption) {
formatOptionLabel = ({ value: namespace, label }: SelectOption) => {
if (namespace) {
const isSelected = this.props.namespaceStore.hasContext(namespace);
@ -85,7 +85,7 @@ class NonInjectedNamespaceSelectFilter extends React.Component<SelectProps & Dep
}
return label;
}
};
@action
onChange = ([{ value: namespace }]: SelectOption[]) => {