We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8896a67 commit e441b5fCopy full SHA for e441b5f
src/app/conf/2025/schedule/[id]/page.tsx
@@ -26,7 +26,11 @@ import { formatDescription } from "./format-description"
26
type SessionProps = { params: { id: string } }
27
28
export function generateMetadata({ params }: SessionProps): Metadata {
29
- const event = schedule.find(s => s.id === params.id)!
+ const event = schedule.find(s => s.id === params.id)
30
+
31
+ if (!event) {
32
+ throw new Error(`Session "${params.id}" not found`)
33
+ }
34
35
const keywords = [
36
event.event_type,
0 commit comments