mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove even more changes that were not needed after all
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
This commit is contained in:
parent
9c6e9d7166
commit
5005c47880
@ -32,10 +32,10 @@ export interface KubeObjectMenuRegistration {
|
|||||||
components: KubeObjectMenuComponents;
|
components: KubeObjectMenuComponents;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export class KubeObjectMenuRegistry extends BaseRegistry<KubeObjectMenuRegistration> {
|
export class KubeObjectMenuRegistry extends BaseRegistry<KubeObjectMenuRegistration> {
|
||||||
getItemsForKind = (kind: string, apiVersion: string) =>
|
getItemsForKind(kind: string, apiVersion: string) {
|
||||||
this.getItems().filter((item) =>
|
return this.getItems().filter((item) => {
|
||||||
item.kind === kind && item.apiVersions.includes(apiVersion),
|
return item.kind === kind && item.apiVersions.includes(apiVersion);
|
||||||
);
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user