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 = () => {
{timetablesError}