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,