Skip to content

Commit ba874af

Browse files
Update course-matrix/backend/src/controllers/timetablesController.ts
Co-authored-by: Kevin Lan <[email protected]>
1 parent 77a3edc commit ba874af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

course-matrix/backend/src/controllers/timetablesController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default {
7171
return res.status(400).json({ error: timetableError.message });
7272

7373
//Validate timetable validity:
74-
if (!timetableData || timetableData.length === 0) {
74+
if (!timetableData) {
7575
return res.status(404).json({ error: "Calendar id not found" });
7676
}
7777

0 commit comments

Comments
 (0)