Skip to content

Commit a86d35f

Browse files
authored
Fixes variant selector for sites without variants (#2544)
1 parent d6c28a0 commit a86d35f

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
@@ -107,7 +107,7 @@ export function SpaceLayout(props: {
107107
)
108108
}
109109
innerHeader={
110-
sections || (!withTopHeader && withVariants) ? (
110+
(sections || !withTopHeader) && withVariants ? (
111111
<SpacesDropdown space={space} spaces={spaces} />
112112
) : null
113113
}

0 commit comments

Comments
 (0)