Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kylehorton33 opened this issue Apr 29, 2021 · 0 comments
Open

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

kylehorton33 opened this issue Apr 29, 2021 · 0 comments

Comments

@kylehorton33
Copy link

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))
    }
kylehorton33 added a commit to kylehorton33/Vue-3-Firebase that referenced this issue Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant