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

Fix namespace store subscribe (#1826)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-12-22 07:43:34 +02:00
parent 75bf5b6dd6
commit 0c4c98e206

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; };
} }