diff --git a/src/zen/spaces/ZenSpaceManager.mjs b/src/zen/spaces/ZenSpaceManager.mjs index 0a3d8ca1c..91944c83e 100644 --- a/src/zen/spaces/ZenSpaceManager.mjs +++ b/src/zen/spaces/ZenSpaceManager.mjs @@ -460,16 +460,19 @@ class nsZenWorkspaces { document .getElementById("zen-essentials") .appendChild(essentialsContainer); - - // Set an initial hidden state if the essentials section is not supposed - // to be shown on the current workspace - if ( - this.containerSpecificEssentials && - this.getActiveWorkspaceFromCache()?.containerTabId != container - ) { - essentialsContainer.setAttribute("hidden", "true"); - } } + + // Set a hidden state if the essentials section is not supposed + // to be shown on the current workspace, else remove the hidden state + if ( + this.containerSpecificEssentials && + this.getActiveWorkspaceFromCache()?.containerTabId != container + ) { + essentialsContainer.setAttribute("hidden", "true"); + } else { + essentialsContainer.removeAttribute("hidden"); + } + return essentialsContainer; }