Skip to content

Commit

Permalink
fix build failing
Browse files Browse the repository at this point in the history
url parameter date for /runs/date was undefined during build, causing the build to fail
  • Loading branch information
coinmoles committed Jul 17, 2024
1 parent 48c6a2b commit 2ba04ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/runs/[date].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const RunsPage: React.FC<PageProps<Queries.RunsPageQuery>> = ({
const drpdPages = data.allDrpdJson.edges;
const date = params.date;

return isMatch(date, "yyyy-MM-dd") ? (
return (date !== undefined && isMatch(date, "yyyy-MM-dd")) ? (
<Layout date={date}>
<div className="container mx-auto py-8">
<h1 className="text-3xl font-bold mb-6">
Expand Down

0 comments on commit 2ba04ea

Please sign in to comment.