From 9689cca8be606da4c468540cd83665c24f5e4814 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Thu, 15 Apr 2021 09:39:53 +0200 Subject: [PATCH] fix: fix project add links --- resources/js/Pages/Company/Project/Partials/ProjectLinks.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/Pages/Company/Project/Partials/ProjectLinks.vue b/resources/js/Pages/Company/Project/Partials/ProjectLinks.vue index 100402ef5..3c6b45cae 100644 --- a/resources/js/Pages/Company/Project/Partials/ProjectLinks.vue +++ b/resources/js/Pages/Company/Project/Partials/ProjectLinks.vue @@ -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); @@ -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;