Skip to content

Commit

Permalink
update uri in deleteProject() -- Issue iamshaunjp#6
Browse files Browse the repository at this point in the history
change uri to this.uri
  • Loading branch information
kylehorton33 authored Apr 30, 2021
1 parent a06d91d commit 4efc4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project-planner/src/components/SingleProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
},
methods: {
deleteProject() {
fetch(uri, { method: 'DELETE' })
fetch(this.uri, { method: 'DELETE' })
.then(() => this.$emit('delete', this.project.id))
.catch(err => console.log(err))
}
Expand Down Expand Up @@ -60,4 +60,4 @@ export default {
.material-icons:hover {
color: #777;
}
</style>
</style>

0 comments on commit 4efc4f8

Please sign in to comment.