google-developer-training / basic-android-kotlin-compose-training-inventory-app

Apache License 2.0
77 stars 84 forks source link

Read and update data using Room #86

Open nfonjeannoel opened 8 months ago

nfonjeannoel commented 8 months ago

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

In which task and step of the codelab can this issue be found? Step 8 Read and update data with Room

Describe the problem on point 3, val currentItem = uiState.value.toItem() this gives an error because it should be val currentItem = uiState.value.itemDetails.toItem() this can be confirmed from point 5 where the correct thing was used val currentItem = uiState.value.itemDetails.toItem()

Steps to reproduce?

  1. Go to website above
  2. Click on task 8
  3. See error

Additional information

image