This commit is contained in:
johan12345
2023-06-11 19:17:53 +02:00
parent 2748b0a3db
commit 0f42ae84de

View File

@@ -548,7 +548,8 @@ class MapViewModel(application: Application, private val state: SavedStateHandle
val apiId = apiId.value
when (apiId) {
"goingelectric" -> {
val chargeCardsVal = filters.getMultipleChoiceValue("chargecards")!!
val chargeCardsVal =
filters.getMultipleChoiceValue("chargecards") ?: return@addSource
filteredChargeCards.value =
if (chargeCardsVal.all) null else chargeCardsVal.values.map { it.toLong() }
.toSet()