mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 18:43:29 +00:00
Don't show aside when there is only one aside (#187)
This commit is contained in:
@@ -167,7 +167,7 @@ async function PageAsideSections(props: { document: JSONDocument; context: Conte
|
||||
|
||||
const sections = await getDocumentSections(document, (ref) => resolveContentRef(ref, context));
|
||||
|
||||
return sections.length > 0 ? <ScrollSectionsList sections={sections} /> : null;
|
||||
return sections.length > 1 ? <ScrollSectionsList sections={sections} /> : null;
|
||||
}
|
||||
|
||||
function getGitSyncName(space: Space): string {
|
||||
|
||||
Reference in New Issue
Block a user