Skip to content

Commit cf03491

Browse files
Fixed that some events without begin or end are in the calendar
1 parent 20ebd23 commit cf03491

2 files changed

Lines changed: 3 additions & 22237 deletions

File tree

src/untis_utils/data.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ function parseTimetable(data: Lesson[]): ILesson[] {
2626
start = parseDate(lesson.date, lesson.startTime);
2727
end = parseDate(lesson.date, lesson.endTime);
2828
}
29+
if (!lesson.startTime || !lesson.endTime) {
30+
return;
31+
}
2932

3033
if (lesson.code === "cancelled") {
3134
return;

0 commit comments

Comments
 (0)