fix todoapp-lite iOS (#2844)

This commit is contained in:
dima.avdeev
2023-03-07 22:28:34 +03:00
committed by GitHub
parent e30379eb79
commit aff9f0d285

View File

@@ -34,5 +34,5 @@ internal fun RootContent(modifier: Modifier = Modifier) {
private val RootState.editingItem: TodoItem?
get() = editingItemId?.let(items::firstById)
private fun List<TodoItem>.firstById(id: Long): TodoItem =
first { it.id == id }
private fun List<TodoItem>.firstById(id: Long): TodoItem? =
firstOrNull { it.id == id }