fix update

This commit is contained in:
2025-12-15 17:53:25 +01:00
parent 14efe45b69
commit be3501eaa2
2 changed files with 146 additions and 7 deletions

View File

@@ -29,9 +29,9 @@ class LocalClientViewModel(
}
}
fun updateSelectedClient() {
fun updateSelectedClient(client: Client) {
viewModelScope.launch {
_selectedClient.value?.let { client ->
_selectedClient.value?.let { c ->
repository.updateClient(client)
_selectedClient.value = null
}