From cca47cd71a8d5be6a9b8771393d4d480a76790df Mon Sep 17 00:00:00 2001 From: Ryan Furrer Date: Thu, 18 Jul 2024 08:26:03 -0400 Subject: [PATCH] fix(Week.tsx): correct import path for scheduledata try --- app/(main)/league/[leagueId]/entry/[entryId]/week/Week.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/(main)/league/[leagueId]/entry/[entryId]/week/Week.tsx b/app/(main)/league/[leagueId]/entry/[entryId]/week/Week.tsx index 31ce5771..0b61b6b0 100644 --- a/app/(main)/league/[leagueId]/entry/[entryId]/week/Week.tsx +++ b/app/(main)/league/[leagueId]/entry/[entryId]/week/Week.tsx @@ -70,7 +70,9 @@ const Week = ({ entry, league, NFLTeams, week }: IWeekProps): JSX.Element => { } try { - const scheduleData = await import(`@/app/schedule/2024/week${week}.json`); + const scheduleData = await import( + `@/app/(main)/schedule/2024/week${week}.json` + ); setSchedule(scheduleData.events); } catch (error) { console.error('Could not load week data:', error);