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)} />