mirror of https://github.com/readrops/Readrops.git
Fix crash when deleting an account
This commit is contained in:
parent
9de8361a33
commit
ba7b2b7108
|
@ -87,7 +87,8 @@ class FeedScreenModel(
|
||||||
_addFeedDialogState.update { dialogState ->
|
_addFeedDialogState.update { dialogState ->
|
||||||
dialogState.copy(
|
dialogState.copy(
|
||||||
accounts = accounts,
|
accounts = accounts,
|
||||||
selectedAccount = accounts.find { it.isCurrentAccount }!!
|
selectedAccount = accounts.find { it.isCurrentAccount }
|
||||||
|
?: accounts.first()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue