@@ -39,7 +39,7 @@ const LazyLoadComponent: FC<
39
39
< div ref = { ref } className = "components-overview-item" >
40
40
{ isVisible && (
41
41
< Suspense fallback = { < div className = "skeleton" > </ div > } >
42
- < Link tabIndex = { 0 } to = { `${ path ?? '/docs/next' } /components/${ formattedComponentName } ` } />
42
+ < Link tabIndex = { 0 } to = { `${ path } /components/${ formattedComponentName } ` } />
43
43
< KolCard
44
44
tabIndex = { - 1 }
45
45
aria-label = { formattedComponentName }
@@ -68,7 +68,6 @@ export const ComponentList: FC<Props> = ({ lang }) => {
68
68
const docVersion = useDocsPreferredVersion ( ) ;
69
69
const version = docVersion ?. preferredVersion ?. name as Version ;
70
70
const components = COMPONENT_VERSIONS ?. [ version ?? 'current' ] ;
71
- if ( components ?. length <= 0 ) return null ;
72
71
const componentLength = components . length ;
73
72
const headline = lang === 'de' ? `Anzahl Komponenten: ${ componentLength } ` : `Components sum: ${ componentLength } ` ;
74
73
const observer = useCallback (
@@ -82,6 +81,7 @@ export const ComponentList: FC<Props> = ({ lang }) => {
82
81
} ) ,
83
82
[ ]
84
83
) ;
84
+ if ( components ?. length <= 0 ) return null ;
85
85
return (
86
86
< >
87
87
< KolHeading _label = { headline } _level = { 3 } >
@@ -93,7 +93,7 @@ export const ComponentList: FC<Props> = ({ lang }) => {
93
93
key = { name }
94
94
name = { name }
95
95
lang = { lang }
96
- path = { ( docVersion ?. preferredVersion ?. path as string ) ?? '' }
96
+ path = { ( docVersion ?. preferredVersion ?. path as string ) ?? '/docs ' }
97
97
loadComponent = { loadComponent }
98
98
observer = { observer }
99
99
/>
0 commit comments