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

Unverified Commit fd14adab authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #2907 from nextcloud/backport/2904/stable2.0

[stable2.0] Catch invalid calendar objects
parents ec0348be 7a812ed3
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 })