diff --git a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx index f66390c10..7c19305c8 100644 --- a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx +++ b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx @@ -107,7 +107,7 @@ export function SpaceLayout(props: { ) } innerHeader={ - sections || (!withTopHeader && withVariants) ? ( + (sections || !withTopHeader) && withVariants ? ( ) : null }