fix(theme): fix auto-sidebar collapsed (#746)

This commit is contained in:
pengzhanbo 2025-10-31 18:03:06 +08:00 committed by GitHub
parent cfa70320c8
commit 192017b892
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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[]