Skip to content

Commit

Permalink
fix: fix project add links (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Apr 15, 2021
1 parent cadadeb commit 71c1e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/Pages/Company/Project/Partials/ProjectLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default {
submit() {
this.loadingState = 'loading';
axios.post(`/${this.$page.props.auth.company.id}/company/projects/${this.localProject.id}/links`, this.form)
axios.post(`/${this.$page.props.auth.company.id}/company/projects/${this.project.id}/links`, this.form)
.then(response => {
this.localLinks.push(response.data.data);
Expand All @@ -183,7 +183,7 @@ export default {
},
removeLink(link) {
axios.delete(`/${this.$page.props.auth.company.id}/company/projects/${this.localProject.id}/links/${link.id}`)
axios.delete(`/${this.$page.props.auth.company.id}/company/projects/${this.project.id}/links/${link.id}`)
.then(response => {
this.localLinks.splice(this.localLinks.findIndex(i => i.id == link.id), 1);
this.editMode = false;
Expand Down

0 comments on commit 71c1e27

Please sign in to comment.