fix:#40 format files

This commit is contained in:
Elmar Kresse
2024-03-17 22:28:33 +01:00
parent 957e1d07aa
commit 25254d93bc

View File

@ -38,7 +38,6 @@ async function getCourses() {
if (selectedCourse.value.name !== "") {
await getModules();
}
}
const store = moduleStore();
@ -56,12 +55,13 @@ const semesters: ComputedRef<{ name: string; value: string }[]> = computed(
);
// return current semester summer form march to august and winter from september to february
const currentSemester: { name: string; value: string } = new Date().getMonth() >= 2 && new Date().getMonth() <= 7 ? semesters.value[1] : semesters.value[0];
const selectedSemester: Ref<{ name: string; value: string }> = ref(
currentSemester
);
const currentSemester: { name: string; value: string } =
new Date().getMonth() >= 2 && new Date().getMonth() <= 7
? semesters.value[1]
: semesters.value[0];
const selectedSemester: Ref<{ name: string; value: string }> =
ref(currentSemester);
//if semesters get changed, refresh the selected semester ref with a watcher
watch(