Skip to content

Commit

Permalink
커스텀 테마 색상 수 줄이는 경우 버그 수정 (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
davin111 authored Feb 24, 2024
1 parent dbe6926 commit 8dfc170
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class TimetableThemeServiceImpl(
colors?.let {
if (it.size !in 1..MAX_COLOR_COUNT) throw InvalidThemeColorCountException

val colorMap = requireNotNull(theme.colors).mapIndexed { i, color -> color to colors[i] }.toMap()
val colorMap = requireNotNull(theme.colors).mapIndexed { i, color -> color to colors.getOrNull(i) }.toMap()

val timetables = timetableRepository.findByUserIdAndThemeId(userId, themeId)
timetables.forEach { timetable ->
Expand Down

0 comments on commit 8dfc170

Please sign in to comment.