PM-31363: Fix crash caused by a duplicate ID (#6428)

This commit is contained in:
David Perez
2026-01-28 12:45:57 -06:00
committed by GitHub
parent ca9ec45548
commit 674cff1c3c
2 changed files with 7 additions and 7 deletions

View File

@@ -160,7 +160,7 @@ fun VaultItemListingContent(
itemsIndexed(
items = state.displayCollectionList,
key = { _, collection -> collection.id },
key = { _, collection -> "collection_${collection.id}" },
) { index, collection ->
BitwardenGroupItem(
startIcon = IconData.Local(iconRes = BitwardenDrawable.ic_collections),
@@ -195,7 +195,7 @@ fun VaultItemListingContent(
itemsIndexed(
items = state.displayFolderList,
key = { _, folder -> folder.id },
key = { _, folder -> "folder_${folder.id}" },
) { index, folder ->
BitwardenGroupItem(
startIcon = IconData.Local(iconRes = BitwardenDrawable.ic_folder),
@@ -229,7 +229,7 @@ fun VaultItemListingContent(
}
itemsIndexed(
items = state.displayItemList,
key = { _, item -> item.id },
key = { _, item -> "item_${item.id}" },
) { index, it ->
BitwardenListItem(
startIcon = it.iconData,

View File

@@ -142,7 +142,7 @@ fun VaultContent(
itemsIndexed(
items = state.favoriteItems,
key = { _, favorite -> favorite.id },
key = { _, favorite -> "favorite_${favorite.id}" },
) { index, favoriteItem ->
VaultEntryListItem(
startIcon = favoriteItem.startIcon,
@@ -307,7 +307,7 @@ fun VaultContent(
itemsIndexed(
items = state.folderItems,
key = { _, folder -> folder.id ?: "no_folder_group" },
key = { _, folder -> "folder_${folder.id}" },
) { index, folder ->
BitwardenGroupItem(
startIcon = IconData.Local(iconRes = BitwardenDrawable.ic_folder),
@@ -344,7 +344,7 @@ fun VaultContent(
}
itemsIndexed(
items = state.noFolderItems,
key = { _, noFolderItem -> noFolderItem.id },
key = { _, noFolderItem -> "no_folder_${noFolderItem.id}" },
) { index, noFolderItem ->
VaultEntryListItem(
startIcon = noFolderItem.startIcon,
@@ -400,7 +400,7 @@ fun VaultContent(
itemsIndexed(
items = state.collectionItems,
key = { _, collection -> collection.id },
key = { _, collection -> "collection_${collection.id}" },
) { index, collection ->
BitwardenGroupItem(
startIcon = IconData.Local(iconRes = BitwardenDrawable.ic_collections),