Skip to content

Commit

Permalink
[HOTFIX/#62] 인덱싱 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
boiledeggg committed Jul 12, 2024
1 parent 97777a2 commit 7cb831c
Showing 1 changed file with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,24 @@ fun CalendarScrapListScreen(
.background(Back)
) {
items(scrapList.size) { day ->
val currentDate = LocalDate.of(getDate.year, getDate.monthValue, day + 1)
CalendarScrapList(
selectedDate = currentDate,
scrapLists = scrapList,
isFromList = true,
noScrapScreen = {})
runCatching {
LocalDate.of(getDate.year, getDate.monthValue, day + 1)
}.onSuccess {
CalendarScrapList(
selectedDate = it,
scrapLists = scrapList,
isFromList = true,
noScrapScreen = {})


if (scrapList[day].isNotEmpty()) {
Spacer(
modifier = Modifier
.height(4.dp)
.fillMaxWidth()
.background(Grey200)
)
if (scrapList[day].isNotEmpty()) {
Spacer(
modifier = Modifier
.height(4.dp)
.fillMaxWidth()
.background(Grey200)
)
}
}
}
}
Expand Down

0 comments on commit 7cb831c

Please sign in to comment.