Skip to content

lesson-61: change uri to this.uri in deleteProject() #6

@kylehorton33

Description

@kylehorton33

In project-planner/components/SingleProject.vue, the fetch function is currently calling for uri where it should be calling for this.uri. This appears to be fixed in the next lesson branch (lesson-62)

deleteProject() {
      fetch(uri, { method: 'DELETE' })
        .then(() => this.$emit('delete', this.project.id))
        .catch(err => console.log(err))
    }
deleteProject() {
      fetch(this.uri, { method: 'DELETE' })
        .then(() => this.$emit('delete', this.project.id))
        .catch(err => console.log(err))
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions