From 2963a2c0a7a6698eac8181736a56e48a67395b8b Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Wed, 21 Jan 2026 11:55:30 +0100 Subject: [PATCH] Update SpaceLayout.tsx --- packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx index 630bc02d4..19d8cd2c5 100644 --- a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx +++ b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx @@ -105,12 +105,13 @@ export function SpaceLayout(props: SpaceLayoutProps) { const withSections = Boolean(visibleSections && visibleSections.list.length > 1); const variants = categorizeVariants(context); + const socialLinks = customization.socialAccounts.filter((account) => account.display?.footer); const withFooter = customization.themes.toggeable || customization.footer.copyright || customization.footer.logo || - customization.socialAccounts.filter((account) => account.display?.footer).length > 0 || + socialLinks.length > 0 || customization.footer.groups?.length; return (