We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a166876 commit 7e7eab3Copy full SHA for 7e7eab3
course-matrix/backend/src/controllers/timetablesController.ts
@@ -176,7 +176,7 @@ export default {
176
}
177
178
// Timetables cannot be longer than 50 characters.
179
- if (timetable_title.length > 50) {
+ if (timetable_title && timetable_title.length > 50) {
180
return res
181
.status(400)
182
.json({ error: "Timetable Title cannot be over 50 characters long" });
0 commit comments