Skip to content

Commit

Permalink
typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
standeren committed Nov 4, 2024
1 parent beb2494 commit 2256d4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function ContentLibraryForPage<T extends PageName = 'landingPage'>({
}: ContentLibraryForPageProps<T>): React.ReactElement {
const router = new RouterRouteMapperImpl(pages);

const Component: PageComponent<Required<PagePropsMap>[T]> =
const Component: PageComponent<Required<PagePropsMap<T>>> =
router.configuredRoutes.get(currentPage);
if (!Component) return <StudioHeading>404 Page Not Found</StudioHeading>; // Show the NotFound page from app-dev instead

Expand Down

0 comments on commit 2256d4c

Please sign in to comment.