From be51affeda6e68f40bba5b9b04bccf1eee97cdb6 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Fri, 20 Dec 2024 11:52:24 +0000 Subject: [PATCH 1/2] fix: link to Semantic Nullability talk --- src/app/conf/2024/_videos.ts | 5 +++++ src/app/conf/2024/schedule/[id]/page.tsx | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/conf/2024/_videos.ts b/src/app/conf/2024/_videos.ts index d3e8054d04..19656bbbdd 100644 --- a/src/app/conf/2024/_videos.ts +++ b/src/app/conf/2024/_videos.ts @@ -88,6 +88,11 @@ export const videos = [ id: "QZZb6Ah4u60", title: `Build Confidently: How @Catch and Error Handling Pave Way in Field Nullability - Itamar Kestenbaum`, }, + { + id: "zRCxwnpVjlg", + title: + "Semantic Nullability: A Path Toward Safe Non-Null Fields - Jordan Eldredge, Meta", + }, { id: "4OVAjJx8tno", title: `Consuming GraphQL in TypeSafe Languages - Anthony Miller, Apollo GraphQL`, diff --git a/src/app/conf/2024/schedule/[id]/page.tsx b/src/app/conf/2024/schedule/[id]/page.tsx index cdf9b73443..c04db2237a 100644 --- a/src/app/conf/2024/schedule/[id]/page.tsx +++ b/src/app/conf/2024/schedule/[id]/page.tsx @@ -80,7 +80,7 @@ export default function SessionPage({ params }: SessionProps) { if (!event) { notFound() } - + console.log("event", event) // @ts-expect-error -- fixme event.speakers = (event.speakers || []).map(speaker => speakers.find(s => s.username === speaker.username), @@ -99,9 +99,9 @@ export default function SessionPage({ params }: SessionProps) { `${eventTitle} ${event.speakers!.map(e => e.name).join(" ")}`, videos.map(e => e.title), ).bestMatch - + console.log("recordingTitle", recordingTitle) const videoId = videos.find(e => e.title === recordingTitle.target)?.id - + console.log("videoId", videoId) if (!videoId) { throw new Error(`Video "${recordingTitle.target}" not found`) } From 58df99b055c69edbb845b2e6868acaf43d5c71d7 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Fri, 20 Dec 2024 11:53:38 +0000 Subject: [PATCH 2/2] remove logs --- src/app/conf/2024/schedule/[id]/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/conf/2024/schedule/[id]/page.tsx b/src/app/conf/2024/schedule/[id]/page.tsx index c04db2237a..cdf9b73443 100644 --- a/src/app/conf/2024/schedule/[id]/page.tsx +++ b/src/app/conf/2024/schedule/[id]/page.tsx @@ -80,7 +80,7 @@ export default function SessionPage({ params }: SessionProps) { if (!event) { notFound() } - console.log("event", event) + // @ts-expect-error -- fixme event.speakers = (event.speakers || []).map(speaker => speakers.find(s => s.username === speaker.username), @@ -99,9 +99,9 @@ export default function SessionPage({ params }: SessionProps) { `${eventTitle} ${event.speakers!.map(e => e.name).join(" ")}`, videos.map(e => e.title), ).bestMatch - console.log("recordingTitle", recordingTitle) + const videoId = videos.find(e => e.title === recordingTitle.target)?.id - console.log("videoId", videoId) + if (!videoId) { throw new Error(`Video "${recordingTitle.target}" not found`) }