fix: Sidebar links unexpand

closes #1044
This commit is contained in:
Tom Moor
2019-10-13 16:15:42 -07:00
parent 766a52f10e
commit 21af0bd8be
2 changed files with 4 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ class DocumentLink extends React.Component<Props> {
pathname: node.url,
state: { title: node.title },
}}
expanded={showChildren}
expanded={showChildren ? true : undefined}
label={node.title}
depth={depth}
exact={false}