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 (#2142)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
557d96d484
commit
4513a08b1f
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user