Skip to content

Commit d39eb3a

Browse files
[getsentry/action-github-commit] Auto commit
1 parent 3fe281a commit d39eb3a

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

app/platform-redirect/page.tsx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,30 +77,31 @@ export default async function Page(props: {
7777

7878
// For JavaScript platforms, also include individual frameworks that support the content
7979
const expandedPlatformList = [...platformList];
80-
80+
8181
// Find JavaScript platform and add its supported frameworks
8282
// Only use JavaScript platform if it's already in the filtered list (has relevant content)
8383
const javascriptPlatform = platformList.find(p => p.key === 'javascript');
84-
85-
if (javascriptPlatform && (
86-
pathname.startsWith('/session-replay/') ||
87-
pathname.startsWith('/tracing/') ||
88-
pathname.startsWith('/profiling/') ||
89-
pathname.startsWith('/logs/')
90-
)) {
84+
85+
if (
86+
javascriptPlatform &&
87+
(pathname.startsWith('/session-replay/') ||
88+
pathname.startsWith('/tracing/') ||
89+
pathname.startsWith('/profiling/') ||
90+
pathname.startsWith('/logs/'))
91+
) {
9192
// Get the JavaScript page to check which frameworks are supported
9293
const jsPageNode = nodeForPath(rootNode, [
9394
'platforms',
9495
'javascript',
9596
...pathname.split('/').filter(Boolean),
9697
]);
97-
98+
9899
if (jsPageNode && jsPageNode.frontmatter.notSupported) {
99100
const notSupported = jsPageNode.frontmatter.notSupported;
100-
101+
101102
// Remove JavaScript from the main list temporarily
102103
const otherPlatforms = expandedPlatformList.filter(p => p.key !== 'javascript');
103-
104+
104105
// Add supported JavaScript frameworks as separate entries
105106
const jsFrameworks: typeof platformList = [];
106107
javascriptPlatform.guides?.forEach(guide => {
@@ -124,7 +125,7 @@ export default async function Page(props: {
124125
});
125126
}
126127
});
127-
128+
128129
// Rebuild the list with JavaScript and its frameworks at the end
129130
expandedPlatformList.length = 0; // Clear the array
130131
expandedPlatformList.push(...otherPlatforms); // Add other platforms first
@@ -165,7 +166,7 @@ export default async function Page(props: {
165166
{expandedPlatformList.map(p => {
166167
// Check if this is a JavaScript framework (has javascript. prefix)
167168
const isJSFramework = p.key.startsWith('javascript.');
168-
169+
169170
return (
170171
<li key={p.key} style={{marginLeft: isJSFramework ? '20px' : '0'}}>
171172
<SmartLink to={`${p.url}${pathname}`}>

0 commit comments

Comments
 (0)