Skip to content

Commit

Permalink
Add default title to calendars DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
balysv committed Nov 17, 2021
1 parent e8ca380 commit 75a9b97
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,13 @@ class SyncGoogleCalendarService(
.flatMap { (googleAccountId, calendars, selected) ->
val accountId = accountIds[googleAccountId]!!.publicId!!
calendars.map { (calendarId, calendar) ->
CalendarDTO(accountId, calendarId, calendarId in selected, calendar.summary, calendar.backgroundColor)
CalendarDTO(
accountId,
calendarId,
calendarId in selected,
calendar.summary ?: "Unnamed Calendar",
calendar.backgroundColor
)
}
}
.let { CalendarsDTO(it) }
Expand Down

0 comments on commit 75a9b97

Please sign in to comment.