Skip to content

Commit 781d319

Browse files
authored
fix(platform): Filter versioned integrations in platform selector (#14370)
1 parent 97f7dcd commit 781d319

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/docTree.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -393,15 +393,17 @@ const extractIntegrations = (p: DocNode): PlatformIntegration[] => {
393393
}
394394
const integrations = nodeForPath(p, 'integrations');
395395
return (
396-
integrations?.children.map(integ => {
397-
return {
398-
key: integ.slug,
399-
name: integ.frontmatter.title,
400-
icon: p.slug + '.' + integ.slug,
401-
url: ['', 'platforms', p.slug, 'integrations', integ.slug].join('/'),
402-
platform: p.slug,
403-
type: 'integration',
404-
};
405-
}) ?? []
396+
integrations?.children
397+
.filter(({path}) => !isVersioned(path))
398+
.map(integ => {
399+
return {
400+
key: integ.slug,
401+
name: integ.frontmatter.title,
402+
icon: p.slug + '.' + integ.slug,
403+
url: ['', 'platforms', p.slug, 'integrations', integ.slug].join('/'),
404+
platform: p.slug,
405+
type: 'integration',
406+
};
407+
}) ?? []
406408
);
407409
};

0 commit comments

Comments
 (0)