Skip to content

Commit

Permalink
TBD: Temporarily display unlisted roles for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
zoul committed Oct 31, 2024
1 parent d6ec1f1 commit 4b45bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/opportunities/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -111,7 +111,7 @@ const RoleSidebar = ({
//

export async function generateMetadata({ params }: Props): Promise<Metadata> {
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 {};
Expand Down

0 comments on commit 4b45bb4

Please sign in to comment.