Fix deleting cloud a also removes vaults of cloud b of the same type
Fixes #414
This commit is contained in:
parent
7e25b3cd40
commit
4d7b5f2971
@ -93,7 +93,7 @@ class CloudConnectionListPresenter @Inject constructor( //
|
||||
}
|
||||
|
||||
private fun vaultsFor(cloudModel: CloudModel, allVaults: List<Vault>): ArrayList<Vault> {
|
||||
return allVaults.filterTo(ArrayList()) { it.cloud.type() == cloudModel.toCloud().type() }
|
||||
return allVaults.filterTo(ArrayList()) { it.cloud.id() == cloudModel.toCloud().id() }
|
||||
}
|
||||
|
||||
fun onDeleteCloudConnectionAndVaults(cloudModel: CloudModel, vaultsOfCloud: ArrayList<Vault>) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user