Skip to content

Commit

Permalink
style: ktlint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
yang1318 committed Dec 13, 2023
1 parent 928c5cd commit 40e435c
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ class MainViewModel
fun getSpaces() {
viewModelScope.launch(coroutineExceptionHandler) {
profileSpaceRepository.getSpaces().collectLatest { responseSpaces ->
val newSpaces = responseSpaces.map { space ->
if (space.id == _uiState.value.nowSpace?.id) {
space.copy(isSelected = true)
} else {
space
val newSpaces =
responseSpaces.map { space ->
if (space.id == _uiState.value.nowSpace?.id) {
space.copy(isSelected = true)
} else {
space
}
}
}
_uiState.update { uiState ->
uiState.copy(
spaces = newSpaces,
Expand Down

0 comments on commit 40e435c

Please sign in to comment.