mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
fix todoapp-lite iOS (#2844)
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user