1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2022-03-03 12:45:52 +02:00
parent 7cb16f7622
commit f59bdec9a9

View File

@ -69,7 +69,7 @@ export class ApiManager<TKubeObject extends KubeObject = any> {
} }
@action @action
registerStore(store: KubeObjectStore<any>, apis: KubeApi<any>[] = [store.api]) { registerStore(store: KubeObjectStore<TKubeObject>, apis: KubeApi<TKubeObject>[] = [store.api]) {
apis.filter(Boolean).forEach(api => { apis.filter(Boolean).forEach(api => {
if (api.apiBase) this.stores.set(api.apiBase, store); if (api.apiBase) this.stores.set(api.apiBase, store);
}); });