Read and update data using Room
Opened this issue · 0 comments
AlexandruNicolescu00 commented
Specify the language of the codelab if it is not English:
In which task and step of the codelab can this issue be found?
Add a function in the ViewModel on step 3.
Describe the problem
code block wrong:
- val currentItem = uiState.value.toItem()
uiState.value don't have any function 'toItem()'
code block fix:
- val currentItem = uiState.value.itemDetails.toItem()
Steps to reproduce?
- Go to the colab Read and update data with Room
- Click on Implement sell item
- See error on Add a function in the ViewModel step 3 code block
Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.