Skip to content

Commit

Permalink
Fix display of non-distinct post items
Browse files Browse the repository at this point in the history
  • Loading branch information
FelberMartin committed Jan 17, 2025
1 parent 720835f commit f4a4d9d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ class SavedPostsViewModel(
authToken = authToken,
serverUrl = serverUrl
).bind { it as List<ISavedPost> } // Required by the compiler
// TODO: this is currently required of a bug allowing duplicate items in the list
// https://github.com/ls1intum/artemis-android/issues/307
.bind {
it.distinct()
}
}
}
.keepSuccess()
Expand Down

0 comments on commit f4a4d9d

Please sign in to comment.