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 committed by GitHub
parent e8f36e97a3
commit 270fadf6fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,10 +43,10 @@ export class NamespaceStore extends KubeObjectStore<Namespace> {
}
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 (allowedNamespaces.length > 0) {
if (accessibleNamespaces.length > 0) {
return () => { return; };
}