fix(theme): fix auto-sidebar collapsed (#746)
This commit is contained in:
parent
cfa70320c8
commit
192017b892
@ -171,7 +171,7 @@ function getAutoDirSidebar(
|
||||
current.icon = frontmatter.icon as ThemeIcon
|
||||
}
|
||||
if (parent?.items?.length) {
|
||||
parent.collapsed = false
|
||||
parent.collapsed ??= false
|
||||
}
|
||||
parent = current
|
||||
items = current.items as ResolvedSidebarItem[]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user