Skip to content

Wrong code in codelab of pathway: Read and update data using Room - Section 8 #186

@ya-sh-vardh-an

Description

@ya-sh-vardh-an

name: Read and update data using Room issue template.
about: Issue about wrong code in the section 8
title: Wrong code in the code section
labels: ''
assignees: ''


URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?authuser=1&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%3Fauthuser%3D1%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?
In Section 8, task: Add a function in the ViewModel, codelab of step 3

Describe the problem
the codelab line is: val currentItem = uiState.value.toItem()
but it should be: val currentItem = uiState.value.itemDetails.toItem()

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
Android Studio version:
API version of the emulator:

Additional information
Include screenshots if they would be useful in clarifying the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions