From 270fadf6fe80512a30f9f9354b26319dfb138646 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Tue, 22 Dec 2020 07:43:34 +0200 Subject: [PATCH] Fix namespace store subscribe (#1826) Signed-off-by: Jari Kolehmainen --- src/renderer/components/+namespaces/namespace.store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/+namespaces/namespace.store.ts b/src/renderer/components/+namespaces/namespace.store.ts index 79c82bd48d..0f0d79e47d 100644 --- a/src/renderer/components/+namespaces/namespace.store.ts +++ b/src/renderer/components/+namespaces/namespace.store.ts @@ -43,10 +43,10 @@ export class NamespaceStore extends KubeObjectStore { } 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; }; }