Skip to content

Commit 2423557

Browse files
committed
fixes
1 parent f811e71 commit 2423557

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/routes/$libraryId/$version.docs.framework.$framework.index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Route = createFileRoute(
1717
const [frameworkOption] = getFrameworkOptions([framework as Framework])
1818

1919
return {
20-
title: frameworkOption.label,
20+
title: frameworkOption?.label ?? capitalize(framework),
2121
}
2222
},
2323
head: (ctx) => {
@@ -29,7 +29,6 @@ export const Route = createFileRoute(
2929
title: ctx.loaderData?.title
3030
? `${ctx.loaderData.title} | ${tail}`
3131
: tail,
32-
description: ctx.loaderData?.description,
3332
}),
3433
}
3534
},
@@ -52,7 +51,7 @@ function Comp() {
5251
className={twMerge('flex overflow-auto flex-col w-full p-4 lg:p-6')}
5352
>
5453
<DocTitle>
55-
TanStack {frameworkOption.label}{' '}
54+
TanStack {frameworkOption?.label ?? capitalize(framework)}{' '}
5655
{library.name.replace('TanStack ', '')} Documentation
5756
</DocTitle>
5857
<div className="h-4" />

0 commit comments

Comments
 (0)