From 9104fc75cf6092c4306b983daee050a77a129e93 Mon Sep 17 00:00:00 2001 From: Saxon Fletcher Date: Fri, 24 Oct 2025 08:31:39 +1000 Subject: [PATCH 1/2] Update apps/studio/components/layouts/ProjectLayout/LayoutSidebar/index.tsx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> --- .../components/layouts/ProjectLayout/LayoutSidebar/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutSidebar/index.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutSidebar/index.tsx index 9640d581e78..7d613b538be 100644 --- a/apps/studio/components/layouts/ProjectLayout/LayoutSidebar/index.tsx +++ b/apps/studio/components/layouts/ProjectLayout/LayoutSidebar/index.tsx @@ -5,8 +5,6 @@ import { ResizableHandle, ResizablePanel, cn } from 'ui' export const LayoutSidebar = () => { const { activeSidebar } = useSidebarManagerSnapshot() - if (!activeSidebar) return null - if (!activeSidebar?.component) { return null } From d2ae9eedddbb5baa598a9bd1c2016dbb1f1a1075 Mon Sep 17 00:00:00 2001 From: Saxon Fletcher Date: Fri, 24 Oct 2025 08:32:36 +1000 Subject: [PATCH 2/2] Update apps/studio/state/sidebar-manager-state.tsx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> --- apps/studio/state/sidebar-manager-state.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/studio/state/sidebar-manager-state.tsx b/apps/studio/state/sidebar-manager-state.tsx index 308bbd4d891..375ce4b0a87 100644 --- a/apps/studio/state/sidebar-manager-state.tsx +++ b/apps/studio/state/sidebar-manager-state.tsx @@ -46,7 +46,7 @@ const createSidebarManagerState = () => { component: () => ReactNode | undefined, handlers: SidebarHandlers = {} ) { - const existing = state.sidebars[id] + const existing = !!state.sidebars[id] state.sidebars[id] = { id, component,