1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-07 21:37:02 +09:00

DROID-3355 App | Tech | Release stabilisation fixes (#2472)

This commit is contained in:
Evgenii Kozlov 2025-05-27 22:23:52 +02:00 committed by konstantiniiv
parent 73a999618d
commit 363560b459

View file

@ -460,13 +460,16 @@ open class FilterViewModel(
}
fun onConditionClicked() {
val condition = conditionState.value?.condition
checkNotNull(condition)
viewModelScope.launch {
proceedWithConditionPickerScreen(
type = condition.type(),
index = condition.index()
)
val condition = conditionState.value?.condition
if (condition != null) {
proceedWithConditionPickerScreen(
type = condition.type(),
index = condition.index()
)
} else {
Timber.e("Unexpected state: condition was null in filter")
}
}
}