From 8a5914dc04e3b3e6d4c1b8ab46a5a888bf2faea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veronika=20Feh=C3=A9rv=C3=ADziov=C3=A1?= <128744051+VeronikaFeherviziova@users.noreply.github.com> Date: Fri, 31 Oct 2025 22:26:52 +0100 Subject: [PATCH] fix: incorrect value for "Semester" select if a value is specified in a prop --- frontend/app/components/InternshipEditor.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/InternshipEditor.vue b/frontend/app/components/InternshipEditor.vue index 1069565..8306e2f 100644 --- a/frontend/app/components/InternshipEditor.vue +++ b/frontend/app/components/InternshipEditor.vue @@ -30,6 +30,16 @@ const year_of_study_choices = [ subtitle: 'magisterské', } ]; +const semester_choices = [ + { + title: "Zimný", + value: "WINTER" + }, + { + title: "Letný", + value: "SUMMER" + } +]; const props = defineProps({ start: { @@ -118,7 +128,7 @@ const { data, error } = await useSanctumFetch('/api/companies/sim :item-props="(item) => { return { title: item.title, subtitle: item.subtitle } }" :item-value="yearOfStudyValueHandler" :rules="[rules.required]"> -