From 3b8d1d6fdf760e4ef52345064668820af5f6b8b3 Mon Sep 17 00:00:00 2001 From: pabloVoorvaart Date: Tue, 23 Jan 2024 10:19:48 -0300 Subject: [PATCH] fix event fetching --- packages/app/app/[organization]/[event]/layout.tsx | 2 +- packages/app/lib/data.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app/app/[organization]/[event]/layout.tsx b/packages/app/app/[organization]/[event]/layout.tsx index ee27e66ff..371f8630d 100644 --- a/packages/app/app/[organization]/[event]/layout.tsx +++ b/packages/app/app/[organization]/[event]/layout.tsx @@ -17,7 +17,7 @@ const Layout = async ({ organization: params.organization, }) const event = await fetchEvent({ - event: params.event, + eventSlug: params.event, }) return (
diff --git a/packages/app/lib/data.ts b/packages/app/lib/data.ts index f94b7d3af..f8d8bb8b4 100644 --- a/packages/app/lib/data.ts +++ b/packages/app/lib/data.ts @@ -116,7 +116,7 @@ export async function fetchEvent({ } export async function fetchEventStages({ - eventId, + event, }: { event: string }): Promise { @@ -291,7 +291,7 @@ export async function fetchNavBarRoutes({ }): Promise { const [eventData, sessionData, speakerData, stageData] = await Promise.all([ - fetchEvent({ event }), + fetchEvent({ eventSlug: event }), fetchEventSessions({ event }), fetchEventSpeakers({ event }), fetchEventStages({ event }),