From e963dbecdd5a1c51166ae0926a9b4cc9584c1365 Mon Sep 17 00:00:00 2001 From: Tybo Verslype <97916632+tyboro2002@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:23:02 +0200 Subject: [PATCH] Update SingleProjectView.vue --- frontend/src/views/projects/SingleProjectView.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/projects/SingleProjectView.vue b/frontend/src/views/projects/SingleProjectView.vue index c2c750fb..4e1b2903 100644 --- a/frontend/src/views/projects/SingleProjectView.vue +++ b/frontend/src/views/projects/SingleProjectView.vue @@ -15,9 +15,10 @@ import { useProject } from '@/composables/services/project.service'; /* Service injection */ const { user } = storeToRefs(useAuthStore()); -const { params } = useRoute(); -const { project, getProjectByID } = useProject(); -const { course, getCourseByID } = useCourses(); +const { params } = useRoute(); +const { project, getProjectByID } = useProject(); +const { course, getCourseByID } = useCourses(); + onMounted(async () => { await getProjectByID(params.projectId as string); await getCourseByID(params.courseId as string);