fix isLoadingAll within KubeObjectStore.loadItems

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-02-17 21:35:13 +02:00
1 parent bbccc988be
commit 912a349d7a
1 file changed
+1 -1
+1 -1
View File
@@ -109,7 +109,7 @@ export abstract class KubeObjectStore<T extends KubeObject = any> extends ItemSt
return api.list({}, this.query);
}
const isLoadingAll = namespaces.includes("kube-system")
const isLoadingAll = this.context.allNamespaces?.length > 1
&& this.context.cluster.accessibleNamespaces.length === 0
&& this.context.allNamespaces.every(ns => namespaces.includes(ns));