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

Commit 7148ebd3 authored by Thomas Citharel's avatar Thomas Citharel Committed by Richard Steinmetz
Browse files

Fix trashbin being inacessible when the calendar of a deleted object's unavailable

Fix is very similar to https://github.com/nextcloud/tasks/pull/1873



Closes #3894

Signed-off-by: default avatarThomas Citharel <tcit@tcit.fr>
parent 10ab4420
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ export default {
				} catch (e) {
					// ignore
				}
				let subline = vobject.calendar.displayName
				let subline = vobject.calendar?.displayName || t('calendar', 'Unknown calendar')
				if (vobject.isEvent) {
					const event = vobject?.calendarComponent.getFirstComponent('VEVENT')
					if (event?.startDate.jsDate && event?.isAllDay()) {
@@ -181,8 +181,8 @@ export default {
					}
				}
				const color = vobject.calendarComponent.getComponentIterator().next().value?.color
						?? vobject.calendar.color
						?? uidToHexColor(vobject.calendar.displayName)
						?? vobject.calendar?.color
						?? uidToHexColor(subline)
				return {
					vobject,
					type: 'object',