Skip to content

Commit eb46c1d

Browse files
committed
Removed gated functionality
1 parent 6b47977 commit eb46c1d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/gitbook/src/components/SiteSections/encodeClientSiteSections.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,6 @@ function encodeSection(context: GitBookSiteContext, section: SiteSection) {
7878
* Test if a section should be included in the list of sections.
7979
*/
8080
function shouldIncludeSection(context: GitBookSiteContext, section: SiteSection) {
81-
if (context.site.id !== 'site_JOVzv') {
82-
return true;
83-
}
84-
85-
// Testing for a new mode of navigation where the multi-variants section are hidden
86-
// if they do not include an equivalent of the current site space.
87-
88-
// TODO: replace with a proper flag on the section
89-
const withNavigateOnlyIfEquivalent = section.id === 'sitesc_4jvEm';
90-
91-
if (!withNavigateOnlyIfEquivalent) {
92-
return true;
93-
}
94-
9581
const { siteSpace: currentSiteSpace } = context;
9682
if (section.siteSpaces.length === 1) {
9783
return true;

0 commit comments

Comments
 (0)