From 4b45bb47671790abb3478005f5386eb8cd340a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Znamen=C3=A1=C4=8Dek?= Date: Thu, 31 Oct 2024 10:03:10 +0100 Subject: [PATCH] TBD: Temporarily display unlisted roles for testing --- app/opportunities/[slug]/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/opportunities/[slug]/page.tsx b/app/opportunities/[slug]/page.tsx index 73402b499..e632b27f9 100644 --- a/app/opportunities/[slug]/page.tsx +++ b/app/opportunities/[slug]/page.tsx @@ -25,7 +25,7 @@ export type Props = { /** Detail page of an open role */ async function Page({ params }: Props) { - const allRoles = await getAllOpportunities("Show to Users"); + const allRoles = await getAllOpportunities("All Opportunities"); // TBD const allProjects = await getAllProjects(); const role = allRoles.find((r) => r.slug === params.slug) ?? notFound(); const projectForRole = (role: Opportunity) => @@ -111,7 +111,7 @@ const RoleSidebar = ({ // export async function generateMetadata({ params }: Props): Promise { - const allRoles = await getAllOpportunities("Show to Users"); + const allRoles = await getAllOpportunities("All Opportunities"); // TBD const role = allRoles.find((r) => r.slug === params.slug); if (!role) { return {};