From 8322cd3e35d7f207de45321de9576f19d8022c96 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Tue, 8 Apr 2025 18:44:08 +0200 Subject: [PATCH] Fix sections being displayed when there is only 1 (#3113) --- packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx index 014f29ee7..6b9aefd92 100644 --- a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx +++ b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx @@ -39,7 +39,7 @@ export function SpaceLayout(props: { const withTopHeader = customization.header.preset !== CustomizationHeaderPreset.None; - const withSections = Boolean(sections && sections.list.length > 0); + const withSections = Boolean(sections && sections.list.length > 1); const isMultiVariants = Boolean(siteSpaces.length > 1); const withFooter =