diff --git a/src/components/App/SideBar/index.tsx b/src/components/App/SideBar/index.tsx index acfbf4e8e..3a3f56aef 100644 --- a/src/components/App/SideBar/index.tsx +++ b/src/components/App/SideBar/index.tsx @@ -135,7 +135,10 @@ const Content = forwardRef(({ onSubmit, subViewOpen export const SideBar = ({ onSubmit }: Props) => { const sidebarIsOpen = useAppStore((s) => s.sidebarIsOpen) const selectedNode = useSelectedNode() - const subViewIsOpen = !!selectedNode && selectedNode.node_type !== 'topic' && sidebarIsOpen && selectedNode.node_type !== 'person' + + const subViewIsOpen = + !!selectedNode && selectedNode.node_type !== 'topic' && sidebarIsOpen && selectedNode.node_type !== 'person' + const [showTeachMe] = useDataStore((s) => [s.showTeachMe]) return (