Skip to content

Commit 8322cd3

Browse files
authored
Fix sections being displayed when there is only 1 (#3113)
1 parent 444039c commit 8322cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function SpaceLayout(props: {
3939

4040
const withTopHeader = customization.header.preset !== CustomizationHeaderPreset.None;
4141

42-
const withSections = Boolean(sections && sections.list.length > 0);
42+
const withSections = Boolean(sections && sections.list.length > 1);
4343
const isMultiVariants = Boolean(siteSpaces.length > 1);
4444

4545
const withFooter =

0 commit comments

Comments
 (0)