From 154ec9a0ca3e8f4969a7a5f84a0577bba7c078d4 Mon Sep 17 00:00:00 2001 From: TkymHrt <23.h.takayama.nutfes@gmail.com> Date: Wed, 6 Mar 2024 14:13:32 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=E6=95=99=E5=93=A1=E3=81=AE=E6=89=80?= =?UTF-8?q?=E5=B1=9E=E3=82=92=E5=8F=8D=E6=98=A0=E3=81=97=E3=81=A6=E6=95=99?= =?UTF-8?q?=E5=93=A1=E5=90=8D=E3=81=8C=E7=99=BB=E9=8C=B2=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/next-project/src/components/fund_information/EditModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/next-project/src/components/fund_information/EditModal.tsx b/view/next-project/src/components/fund_information/EditModal.tsx index ed2d596f3..0ff44486d 100644 --- a/view/next-project/src/components/fund_information/EditModal.tsx +++ b/view/next-project/src/components/fund_information/EditModal.tsx @@ -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]);