Don't show aside when there is only one aside (#187)

This commit is contained in:
Samy Pessé
2024-02-24 15:17:53 +01:00
committed by GitHub
parent 341264e879
commit eea1323c17
+1 -1
View File
@@ -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 {