diff --git a/src/views/biz/admin/judge/JudgeDataModifyForm.jsx b/src/views/biz/admin/judge/JudgeDataModifyForm.jsx index 515feff..0696559 100644 --- a/src/views/biz/admin/judge/JudgeDataModifyForm.jsx +++ b/src/views/biz/admin/judge/JudgeDataModifyForm.jsx @@ -41,19 +41,19 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav formData.append('scState', rowData.scState); formData.append('scTransfer', rowData.scTransfer); formData.append('scDatagb', rowData.scDatagb); - formData.append('scCarnum', scCarnum); - formData.append('scName', scName); - formData.append('scDong', scDong); + formData.append('scCarnum', scCarnum || ''); + formData.append('scName', scName || ''); + formData.append('scDong', scDong || ''); formData.append('scContDoc', selectedContDoc); formData.append('scCdate', scCdate ? scCdate?.replace(/-/g, '') : ''); formData.append('scIngb', selectedIngb); formData.append('scWdate', scWdate ? scWdate?.replace(/-/g, '') : ''); formData.append('scJbtime', scJbtime ? scJbtime?.replace(/:/g, '') : ''); - formData.append('scPos', scPos); + formData.append('scPos', scPos || ''); formData.append('zipcode1', zipcode1 ? zipcode1.substring(0, 3) : ''); formData.append('zipcode2', zipcode1 ? zipcode1.substring(3) : ''); - formData.append('scJuso', scJuso); - formData.append('scBunji', scBunji); + formData.append('scJuso', scJuso || ''); + formData.append('scBunji', scBunji || ''); Object.values(picads).forEach((v) => { formData.append('picadFiles', v); @@ -223,7 +223,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav label="차량번호" size="small" fullWidth - value={scCarnum} + value={scCarnum || ''} onChange={(e) => setScCarnum(e?.target?.value)} autoFocus /> @@ -231,10 +231,10 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav - setScName(e?.target?.value)} /> + setScName(e?.target?.value)} /> - setScDong(e?.target?.value)} /> + setScDong(e?.target?.value)} /> @@ -315,7 +315,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav required label="위반장소" fullWidth - value={rowData.scPos} + value={rowData.scPos || ''} onChange={(e) => setScPos(e?.target?.value)} /> @@ -353,7 +353,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav /> - setScBunji(e?.target?.value)} /> + setScBunji(e?.target?.value)} />