mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Backport: fix ApiManager.getApiByKind (#1878)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
686b368ef5
commit
b84b461977
@ -18,7 +18,7 @@ export class ApiManager {
|
||||
}
|
||||
|
||||
getApiByKind(kind: string, apiVersion: string) {
|
||||
return Array.from(this.apis.values()).find((api) => api.kind === kind && api.apiVersion === apiVersion);
|
||||
return Array.from(this.apis.values()).find((api) => api.kind === kind && api.apiVersionWithGroup === apiVersion);
|
||||
}
|
||||
|
||||
registerApi(apiBase: string, api: KubeApi) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user