name: Read and update data using Room issue template.
about: Issue template for Read and update data using Room
title: Read and update data using Room
labels: ''
assignees: ''
URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-update-data-room#7
Specify the language of the codelab if it is not English:
English
In which task and step of the codelab can this issue be found?
It is step 8 (Implement sell item): step 3 of Add a function in the ViewModel
Describe the problem
The step says to implement: val currentItem = uiState.value.toItem(). This function does not exist in value. We need to write: val currentItem = uiState.value.itemDetails.toItem()
The Git repo corrects this too. This error is only in the codelab.
Steps to reproduce?
- Go to... N/A
- Click on... N/A
- See error... N/A
Versions
_Android Studio version:_N/A
_API version of the emulator:_N/A
Additional information
Include screenshots if they would be useful in clarifying the problem.

name: Read and update data using Room issue template.
about: Issue template for Read and update data using Room
title: Read and update data using Room
labels: ''
assignees: ''
URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-update-data-room#7
Specify the language of the codelab if it is not English:
English
In which task and step of the codelab can this issue be found?
It is step 8 (Implement sell item): step 3 of Add a function in the ViewModel
Describe the problem
The step says to implement: val currentItem = uiState.value.toItem(). This function does not exist in value. We need to write: val currentItem = uiState.value.itemDetails.toItem()
The Git repo corrects this too. This error is only in the codelab.
Steps to reproduce?
Versions
_Android Studio version:_N/A
_API version of the emulator:_N/A
Additional information
Include screenshots if they would be useful in clarifying the problem.