Skip to content

Commit

Permalink
fix event fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
pblvrt committed Jan 23, 2024
1 parent 56cee10 commit 3b8d1d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/app/app/[organization]/[event]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Layout = async ({
organization: params.organization,
})
const event = await fetchEvent({
event: params.event,
eventSlug: params.event,
})
return (
<div className="h-full flex flex-col z-1 min-h-screen ">
Expand Down
4 changes: 2 additions & 2 deletions packages/app/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export async function fetchEvent({
}

export async function fetchEventStages({
eventId,
event,
}: {
event: string
}): Promise<IStageModel[]> {
Expand Down Expand Up @@ -291,7 +291,7 @@ export async function fetchNavBarRoutes({
}): Promise<NavBarProps> {
const [eventData, sessionData, speakerData, stageData] =
await Promise.all([
fetchEvent({ event }),
fetchEvent({ eventSlug: event }),
fetchEventSessions({ event }),
fetchEventSpeakers({ event }),
fetchEventStages({ event }),
Expand Down

0 comments on commit 3b8d1d6

Please sign in to comment.