diff --git a/src/modules/01_exam/components/Form/Education.vue b/src/modules/01_exam/components/Form/Education.vue index 3534eb7..76b3125 100644 --- a/src/modules/01_exam/components/Form/Education.vue +++ b/src/modules/01_exam/components/Form/Education.vue @@ -12,7 +12,7 @@
-
+
-
+
{ let filterEducationLevels = data.educationLevels if (examStore.educationLevel === 'BACHELOR') { - filterEducationLevels = data.educationLevels.filter((level: any) => level.rank === 8) + filterEducationLevels = data.educationLevels.filter( + (level: any) => level.educationLevel === 'BACHELOR' + ) } else if (examStore.educationLevel === 'LOW_BACHELOR') { filterEducationLevels = data.educationLevels.filter( - (level: any) => level.rank >= 4 && level.rank <= 7 + (level: any) => level.educationLevel === 'LOW_BACHELOR' ) } @@ -213,7 +215,7 @@ const fetchPerson = async () => { }) data.educationLevels - .filter((level: any) => level.rank >= 4) + .filter((level: any) => level.isHigh === true) .map((r: any) => { optionEducationLevelHigher.push({ id: r.id.toString(), name: r.name.toString() }) })