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

fix namespace store subscribe

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-12-21 19:55:25 +02:00
parent d35feab6ea
commit c30a20a802

View File

@ -43,10 +43,10 @@ export class NamespaceStore extends KubeObjectStore<Namespace> {
} }
subscribe(apis = [this.api]) { subscribe(apis = [this.api]) {
const { allowedNamespaces } = getHostedCluster(); const { accessibleNamespaces } = getHostedCluster();
// if user has given static list of namespaces let's not start watches because watch adds stuff that's not wanted // if user has given static list of namespaces let's not start watches because watch adds stuff that's not wanted
if (allowedNamespaces.length > 0) { if (accessibleNamespaces.length > 0) {
return () => { return; }; return () => { return; };
} }