diff --git a/src/models/dhbw-rapla-changes/changes/changes.service.ts b/src/models/dhbw-rapla-changes/changes/changes.service.ts index 54c38bd..3467a13 100644 --- a/src/models/dhbw-rapla-changes/changes/changes.service.ts +++ b/src/models/dhbw-rapla-changes/changes/changes.service.ts @@ -54,8 +54,11 @@ export const getChanges = async (course: string, week: string): Promise if (eventsMap.has(row.entry_id)) { let event = eventsMap.get(row.entry_id); - event.latest_event_summary = row.new_summary; - event.latest_start_date = row.new_start; + // Only adjust these fields if the event is not deleted as otherwise they would be null + if (!row.isDeleted) { + event.latest_event_summary = row.new_summary; + event.latest_start_date = row.new_start; + } event.changes.push(change); eventsMap.set(row.entry_id, event);