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