From 0dd18c4fd4263e5860374da4a0a1b5421cc7f346 Mon Sep 17 00:00:00 2001 From: CC Worker Date: Tue, 2 Jun 2026 22:15:58 +0000 Subject: [PATCH] =?UTF-8?q?fix(timetable):=20use=20fetchTimetables=20inste?= =?UTF-8?q?ad=20of=20fetchMyTimetables=20=E2=80=94=20service=20stub=20unim?= =?UTF-8?q?plemented?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit timetableOnlyService.getMyTimetables is referenced but never defined; calling it throws 'is not a function' at runtime. fetchTimetables calls the implemented listTimetables endpoint. Co-Authored-By: Claude Sonnet 4.6 --- src/pages/timetable/TimetableListPage.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/timetable/TimetableListPage.tsx b/src/pages/timetable/TimetableListPage.tsx index f64c4f3..0823f08 100644 --- a/src/pages/timetable/TimetableListPage.tsx +++ b/src/pages/timetable/TimetableListPage.tsx @@ -5,11 +5,11 @@ import useTimetableStore from '../../stores/timetableStore'; import { format, parseISO } from 'date-fns'; const TimetableListPage: React.FC = () => { - const { timetables, timetablesLoading, timetablesError, fetchMyTimetables } = useTimetableStore(); + const { timetables, timetablesLoading, timetablesError, fetchTimetables } = useTimetableStore(); useEffect(() => { - fetchMyTimetables(); - }, [fetchMyTimetables]); + fetchTimetables(); + }, [fetchTimetables]); if (timetablesLoading) { return ( @@ -26,7 +26,7 @@ const TimetableListPage: React.FC = () => {

Error Loading Timetables

{timetablesError}