diff --git a/src/pages/timetable/TimetableListPage.tsx b/src/pages/timetable/TimetableListPage.tsx index 0823f08..6a2059b 100644 --- a/src/pages/timetable/TimetableListPage.tsx +++ b/src/pages/timetable/TimetableListPage.tsx @@ -19,22 +19,8 @@ const TimetableListPage: React.FC = () => { ); } - if (timetablesError) { - return ( -
-
-

Error Loading Timetables

-

{timetablesError}

- -
-
- ); - } + // Treat fetch errors (including 404 — endpoint not yet available) as empty state + const showEmpty = timetablesError || timetables.length === 0; return (
@@ -45,7 +31,7 @@ const TimetableListPage: React.FC = () => {
- {timetables.length === 0 ? ( + {showEmpty ? (

No timetables yet