Skip to content

Commit 7e7eab3

Browse files
committed
favourite fix
1 parent a166876 commit 7e7eab3

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
@@ -176,7 +176,7 @@ export default {
176176
}
177177

178178
// Timetables cannot be longer than 50 characters.
179-
if (timetable_title.length > 50) {
179+
if (timetable_title && timetable_title.length > 50) {
180180
return res
181181
.status(400)
182182
.json({ error: "Timetable Title cannot be over 50 characters long" });

0 commit comments

Comments
 (0)