mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix isLoadingAll within KubeObjectStore.loadItems
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
b8c78cd18f
commit
bbccc988be
@ -109,9 +109,11 @@ export abstract class KubeObjectStore<T extends KubeObject = any> extends ItemSt
|
|||||||
return api.list({}, this.query);
|
return api.list({}, this.query);
|
||||||
}
|
}
|
||||||
|
|
||||||
const isLoadingAll = this.context.allNamespaces.every(ns => namespaces.includes(ns));
|
const isLoadingAll = namespaces.includes("kube-system")
|
||||||
|
&& this.context.cluster.accessibleNamespaces.length === 0
|
||||||
|
&& this.context.allNamespaces.every(ns => namespaces.includes(ns));
|
||||||
|
|
||||||
if (isLoadingAll && this.context.cluster.accessibleNamespaces.length === 0) {
|
if (isLoadingAll) {
|
||||||
this.loadedNamespaces = [];
|
this.loadedNamespaces = [];
|
||||||
|
|
||||||
return api.list({}, this.query);
|
return api.list({}, this.query);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user