Skip to content

Commit

Permalink
fix: 학생 등록 심사위원 배정 드롭다운 아이템 가나다순 정렬 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
hynseok authored Aug 29, 2024
1 parent 86abe3c commit 1bf9301
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,14 @@ function AssignReviewerSection({
let data: ComboboxData = [];
if (!isLoadingProf) {
data = professors
? professors.map((professor) => ({
label: professor.department
? `${professor.name} (${professor.department.name})`
: `${professor.name}`,
value: String(professor.id),
}))
? professors
.map((professor) => ({
label: professor.department
? `${professor.name} (${professor.department.name})`
: `${professor.name}`,
value: String(professor.id),
}))
.sort((a, b) => a.label.localeCompare(b.label))
: [];
}
setProfessorsSelectData(data);
Expand Down

0 comments on commit 1bf9301

Please sign in to comment.