mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix bug in KubeApi constructor
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
a254473141
commit
a1c9946e84
@ -237,7 +237,7 @@ export class KubeApi<
|
||||
constructor(opts: KubeApiOptions<Object, Data>) {
|
||||
const {
|
||||
objectConstructor,
|
||||
request,
|
||||
request = asLegacyGlobalForExtensionApi(apiKubeInjectionToken),
|
||||
kind = objectConstructor.kind,
|
||||
isNamespaced,
|
||||
apiBase: fullApiPathname = objectConstructor.apiBase,
|
||||
@ -263,7 +263,7 @@ export class KubeApi<
|
||||
this.apiGroup = apiGroup;
|
||||
this.apiVersion = apiVersion;
|
||||
this.apiResource = resource;
|
||||
this.request = request ?? asLegacyGlobalForExtensionApi(apiKubeInjectionToken);
|
||||
this.request = request;
|
||||
this.objectConstructor = objectConstructor;
|
||||
legacyRegisterApi(this);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user