From f0181e84ea7e7f31b56f21970e81271a9ce517b5 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Mon, 30 May 2022 17:58:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20undefind=20=ED=95=84=EB=93=9C=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/admin/judge/JudgeDataModifyForm.jsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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)} />