From d5d7ffba9f38ef9c35861856e07f3ac39b32cc76 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Thu, 12 Aug 2021 10:40:57 +0300 Subject: [PATCH] remove throw for backward compat reasons Signed-off-by: Jari Kolehmainen --- src/common/k8s-api/kube-object.store.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/common/k8s-api/kube-object.store.ts b/src/common/k8s-api/kube-object.store.ts index 0c1473b4e4..dc428eb08b 100644 --- a/src/common/k8s-api/kube-object.store.ts +++ b/src/common/k8s-api/kube-object.store.ts @@ -59,10 +59,6 @@ export abstract class KubeObjectStore extends ItemStore super(); if (api) this.api = api; - if (!this.api) { - throw new Error("api is not defined"); - } - makeObservable(this); autoBind(this); this.bindWatchEventsUpdater();