Fix crash

This commit is contained in:
Rafał Kobyłko 2023-09-02 22:19:44 +02:00
parent e7f447c185
commit 4cce12044d

View File

@ -22,7 +22,7 @@ class FocusServiceViewModel(
init {
launchScoped {
servicesRepository.observeServicesTicker()
.map { it.first { it.id == serviceId } }
.map { it.firstOrNull { it.id == serviceId } }
.collect { service ->
uiState.update { it.copy(service = service) }
}