Skip to content

Commit

Permalink
🐛 Fix state shifting when deleting status (#485)
Browse files Browse the repository at this point in the history
fixes #475
  • Loading branch information
jheubuch authored Feb 20, 2025
1 parent 31f8293 commit 04c17b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/kotlin/de/hbch/traewelling/util/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ fun LazyListScope.checkInList(
@Suppress("UNUSED_VARIABLE") val featureFlags = FeatureFlags.getInstance()

itemsIndexed(
items = checkIns
items = checkIns,
key = { _, status -> status.id }
) { index, status ->
val previousStatus = checkIns.getOrNull(index - 1)
if (
Expand Down

0 comments on commit 04c17b4

Please sign in to comment.