diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 2fcc147..5437a4f 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -83,6 +83,10 @@ export default { }; }, mounted() { + this.site = null; + this.description = null; + this.type = null; + this.tutors = []; Vue.axios .get("/api/site/all") .then(response => { diff --git a/frontend/src/views/NewTutor.vue b/frontend/src/views/NewTutor.vue index 4907e67..2af2031 100644 --- a/frontend/src/views/NewTutor.vue +++ b/frontend/src/views/NewTutor.vue @@ -57,7 +57,7 @@ export default { if (form.checkValidity()) { Vue.axios .post("/api/tutor", { - sideId: this.siteSelection, + siteId: this.siteSelection, name: this.tutorName }) .then(response => { @@ -67,7 +67,7 @@ export default { }) .catch(error => { this.alertVariant = "danger"; - this.alertText = "Failed to add Site"; + this.alertText = "Failed to add Tutor"; this.showAlert(); console.log(error); });