Skip to content

Commit

Permalink
[fix] 教員の所属を反映して教員名が登録されるように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TkymHrt committed Mar 6, 2024
1 parent 563e8d7 commit 154ec9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function EditModal(props: ModalProps) {
useEffect(() => {
const teacher = props.teachers.find((teacher) => teacher.departmentID === departmentID);
if (teacher && teacher.id) {
setFormData({ ...formData, teacherID: props.fundInformation.teacherID });
setFormData({ ...formData, teacherID: teacher.id });
}
}, [departmentID]);

Expand Down

0 comments on commit 154ec9a

Please sign in to comment.