mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
Fixed incorrect filtering for folders in VaultItemListingDataExtensions (#396)
This commit is contained in:
parent
a8005c15f1
commit
1400da08f4
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ fun VaultItemListingState.ItemListingType.updateWithAdditionalDataIfNecessary(
|
|||
when (this) {
|
||||
is VaultItemListingState.ItemListingType.Card -> this
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue