1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

remove throw for backward compat reasons

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-08-12 10:40:57 +03:00
parent 0925a5e32e
commit d5d7ffba9f

View File

@ -59,10 +59,6 @@ export abstract class KubeObjectStore<T extends KubeObject> extends ItemStore<T>
super(); super();
if (api) this.api = api; if (api) this.api = api;
if (!this.api) {
throw new Error("api is not defined");
}
makeObservable(this); makeObservable(this);
autoBind(this); autoBind(this);
this.bindWatchEventsUpdater(); this.bindWatchEventsUpdater();