Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a812ed3 authored by Christoph Wurst's avatar Christoph Wurst Committed by backportbot[bot]
Browse files

Catch invalid calendar objects

parent ec0348be
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -688,9 +688,13 @@ const actions = {
		const calendarObjects = []
		const calendarObjectIds = []
		for (const r of response.concat(responseTodo)) {
			try {
				const calendarObject = mapCDavObjectToCalendarObject(r, calendar.id)
				calendarObjects.push(calendarObject)
				calendarObjectIds.push(calendarObject.id)
			} catch (e) {
				console.error('could not convert calendar object', e)
			}
		}

		context.commit('appendCalendarObjects', { calendarObjects })