Fixed incorrect filtering for folders in VaultItemListingDataExtensions (#396)

This commit is contained in:
Ramsey Smith 2023-12-14 14:12:00 -07:00 committed by Álison Fernandes
parent a8005c15f1
commit 1400da08f4

View file

@ -57,7 +57,10 @@ fun VaultItemListingState.ItemListingType.updateWithAdditionalDataIfNecessary(
when (this) { when (this) {
is VaultItemListingState.ItemListingType.Card -> this is VaultItemListingState.ItemListingType.Card -> this
is VaultItemListingState.ItemListingType.Folder -> copy( is VaultItemListingState.ItemListingType.Folder -> copy(
folderName = folderList.first { it.id == folderId }.name, folderName = folderList
.find { it.id == folderId }
?.name
.orEmpty(),
) )
is VaultItemListingState.ItemListingType.Identity -> this is VaultItemListingState.ItemListingType.Identity -> this