File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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" />
You can’t perform that action at this time.
0 commit comments