From 7bcc4f31cd887ffd76b82ba5ef78f285af629823 Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Thu, 4 Jul 2024 10:37:12 +0200 Subject: [PATCH] Fixing harvester cluster page reload currentProduct null Signed-off-by: Francesco Torchia --- shell/components/nav/Header.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/components/nav/Header.vue b/shell/components/nav/Header.vue index 468da025664..140ea41e65b 100644 --- a/shell/components/nav/Header.vue +++ b/shell/components/nav/Header.vue @@ -133,7 +133,7 @@ export default { // Don't show if the header is in 'simple' mode const notSimple = !this.simple; // One of these must be enabled, otherwise t here's no component to show - const validFilterSettings = this.currentProduct.showNamespaceFilter || this.currentProduct.showWorkspaceSwitcher; + const validFilterSettings = this.currentProduct?.showNamespaceFilter || this.currentProduct?.showWorkspaceSwitcher; return validClusterOrProduct && notSimple && validFilterSettings; },