Skip to content

Commit

Permalink
fix/#109: id 중복 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
jinukeu committed Jan 21, 2024
1 parent 59c51a6 commit 5dec2d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class MyEvaluationViewModel @Inject constructor(
reduce {
lectureEvaluationPage++
isLastLectureEvaluation = it.isEmpty()
state.copy(myLectureEvaluationList = currentList.addAll(it).distinct().toPersistentList())
state.copy(myLectureEvaluationList = currentList.addAll(it).distinctBy { it.id }.toPersistentList())
}
}
.onFailure {
Expand All @@ -81,7 +81,7 @@ class MyEvaluationViewModel @Inject constructor(
reduce {
examEvaluationPage++
isLastExamEvaluation = it.isEmpty()
state.copy(myExamEvaluationList = currentList.addAll(it).distinct().toPersistentList())
state.copy(myExamEvaluationList = currentList.addAll(it).distinctBy { it.id }.toPersistentList())
}
}
.onFailure {
Expand Down

0 comments on commit 5dec2d5

Please sign in to comment.