File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
apps/portal/src/app/references/components/TDoc Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ import { getSidebarLinkGroups } from "./utils/getSidebarLinkgroups";
2020import { fetchAllSlugs , getSlugToDocMap } from "./utils/slugs" ;
2121import { nameToSubgroupSlug , subgroups } from "./utils/subgroups" ;
2222
23- type PageProps = { params : Promise < { version : string ; slug ?: string [ ] } > } ;
23+ type PageProps = {
24+ params : Promise < { version : string ; slug ?: string [ ] } > ;
25+ } ;
26+
2427type LayoutProps = {
2528 params : Promise < { version : string } > ;
2629 children : React . ReactNode ;
@@ -100,7 +103,9 @@ export function getTDocPage(options: {
100103 }
101104
102105 // statically generate pages for latest version
103- async function generateStaticParams ( ) : Promise < PageProps [ "params" ] [ ] > {
106+ async function generateStaticParams ( ) : Promise <
107+ Awaited < PageProps [ "params" ] > [ ]
108+ > {
104109 const versions = await getVersions ( ) ;
105110
106111 const returnVal = await Promise . all (
@@ -125,8 +130,7 @@ export function getTDocPage(options: {
125130 } ) ,
126131 ) ;
127132
128- const paths = returnVal . flat ( ) ;
129- return paths . map ( ( p ) => Promise . resolve ( p ) ) ;
133+ return returnVal . flat ( ) ;
130134 }
131135
132136 async function generateMetadata ( props : PageProps ) : Promise < Metadata > {
You can’t perform that action at this time.
0 commit comments