diff --git a/src/renderer/api/api-manager.ts b/src/renderer/api/api-manager.ts index 1a01ff61ac..a802851f65 100644 --- a/src/renderer/api/api-manager.ts +++ b/src/renderer/api/api-manager.ts @@ -46,12 +46,12 @@ export class ApiManager { @action registerStore(store: KubeObjectStore, apis: KubeApi[] = [store.api]) { apis.forEach(api => { - this.stores.set(api.kind, store); + this.stores.set(api.apiBase, store); }); } getStore(api: string | KubeApi): S { - return this.stores.get(this.resolveApi(api)?.kind) as S; + return this.stores.get(this.resolveApi(api)?.apiBase) as S; } }