Merge pull request #80 from Philipp91/statusentriesfix

Add key to the StatusEntries list
This commit is contained in:
Abdelilah El Aissaoui 2023-01-29 22:42:45 +01:00 committed by GitHub
commit 6cca8e9c9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,7 +581,7 @@ private fun EntriesList(
.background(MaterialTheme.colors.background),
state = lazyListState,
) {
items(statusEntries) { statusEntry ->
items(statusEntries, key = { it.filePath }) { statusEntry ->
val isEntrySelected = selectedEntryType != null &&
selectedEntryType is DiffEntryType.UncommitedDiff && // Added for smartcast
selectedEntryType.statusEntry == statusEntry