Skip to content

Commit

Permalink
Favorite Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Shade authored and Shade committed Nov 24, 2024
1 parent 34f7ce2 commit 08ba91a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/viewmodel/SecVaultScreenModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ class SecVaultScreenModel(
fun loadCredentials() {
screenModelScope.launch(dispatcher) {
_secVaultState.value = UiState.Loading
selectedCredential.value.getId()?.let { loadSelectedCredential(it)}
val id = selectedCredential.value.getId()
_selectedCredential.value = SelectedCredential(null, null)
id?.let { loadSelectedCredential(it) }

when (_selectedMenuItem.value) {
DefaultMenuItem.PASSWORDS -> loadPasswords(_selectedSortItem.value)
Expand Down

0 comments on commit 08ba91a

Please sign in to comment.