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

don't use list all optimization when operating in accessible namespaces mode

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-02-12 09:03:13 -05:00
parent 317c4cf072
commit ec13985c7c

View File

@ -111,7 +111,7 @@ export abstract class KubeObjectStore<T extends KubeObject = any> extends ItemSt
const isLoadingAll = this.context.allNamespaces.every(ns => namespaces.includes(ns));
if (isLoadingAll) {
if (isLoadingAll && this.context.cluster.accessibleNamespaces.length === 0) {
this.loadedNamespaces = [];
return api.list({}, this.query);