Skip to content

Commit

Permalink
add back in sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Eckerman authored and Eckerman committed Sep 13, 2023
1 parent 676943a commit 36e41b8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/components/common/forms/SchoolDetailsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,15 @@ export default {
});
}
},
sortGrades() {
const gradeList = [];
for (const grade of this.schoolGradeTypes) {
if (this.schoolDetailsCopy.grades.find((rawGrade) => rawGrade.schoolGradeCode === grade.schoolGradeCode)) {
gradeList.push(grade);
}
}
this.schoolDetailsCopy.grades = gradeList;
},
}
};
</script>
Expand Down

0 comments on commit 36e41b8

Please sign in to comment.