From cc887b842c1889773d7e3711e7e25174b0de6b9c Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Sun, 3 Jul 2022 20:08:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A7=80=EB=A3=8C=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/biz/admin/judge/JudgeDataModifyForm.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/biz/admin/judge/JudgeDataModifyForm.jsx b/src/views/biz/admin/judge/JudgeDataModifyForm.jsx index 364017e..433c99e 100644 --- a/src/views/biz/admin/judge/JudgeDataModifyForm.jsx +++ b/src/views/biz/admin/judge/JudgeDataModifyForm.jsx @@ -28,7 +28,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav const [scWdate, setScWdate] = useState(rowData?.scWdate); const [scCdate, setScCdate] = useState(rowData?.scCdate); const [scJbtime, setScJbtime] = useState(rowData?.scJbtime); - const [scPos, setScPos] = useState(''); + const [scPos, setScPos] = useState(rowData?.scPos ?? ''); const [picads, setPicads] = useState({}); const [frecads, setFrecads] = useState({}); @@ -123,7 +123,10 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav alert.show('우편번호는 필수입니다.'); return; } - + if (scPos.length < 1) { + alert.show('위반장소는 필수입니다.'); + return; + } if (rowData.scPicad1 === null || rowData.scPicad1 === '') { alert.show('단속사진 하나는 필수입니다.'); return; @@ -317,7 +320,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav required label="위반장소" fullWidth - value={rowData.scPos || ''} + value={scPos} onChange={(e) => setScPos(e?.target?.value)} />