Skip to content

Commit

Permalink
fix(ResourceViewModel): episodes mixing between teams
Browse files Browse the repository at this point in the history
Add acting team as criteria for matching episode filter
  • Loading branch information
urFate committed Apr 24, 2024
1 parent b9dec24 commit e3441bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ class ResourceViewModel(context: Context, private val contentType: ContentType)
*/

when (
val matchingEpisode = cachedEpisodes.firstOrNull { it.episode == episodeEntity.episode }
val matchingEpisode =
cachedEpisodes.firstOrNull { it.episode == episodeEntity.episode && it.actingTeam == episodeEntity.actingTeam }
) {
null -> episodeEntity.copy(uid = null, contentUid = contentUid)
else -> {
Expand Down

0 comments on commit e3441bb

Please sign in to comment.