@ -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 =
private fun List<TodoItem>.firstById(id: Long): TodoItem? =
first { it.id == id }
firstOrNull { it.id == id }