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

Commit 8dfa44ea authored by julia.kirschenheuter's avatar julia.kirschenheuter Committed by backportbot[bot]
Browse files

Fix calendar inside AppointmentConfigModal



If calendar has been removed - take a first one from the sorted calendar list

Signed-off-by: default avatarjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
parent a575ad7e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -204,7 +204,8 @@ export default {
			}

			const uri = this.editing.targetCalendarUri
			return this.ownSortedCalendars.find(cal => this.calendarUrlToUri(cal.url) === uri)
			const calendar = this.ownSortedCalendars.find(cal => this.calendarUrlToUri(cal.url) === uri)
			return calendar || this.ownSortedCalendars[0]
		},
		defaultConfig() {
			return AppointmentConfig.createDefault(