From 18b8c42b0a1705e84d4f43843952895bed9b05d1 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Fri, 29 Apr 2022 11:38:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20-=20=EC=82=AD=EC=A0=9C=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/biz/board/Board.jsx | 10 +++++++--- src/views/biz/judge/JudgeDataModifyForm.jsx | 10 +--------- src/views/biz/judge/JudgeDataNewForm.jsx | 2 +- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/views/biz/board/Board.jsx b/src/views/biz/board/Board.jsx index 4e8e17e..9e6e4cc 100644 --- a/src/views/biz/board/Board.jsx +++ b/src/views/biz/board/Board.jsx @@ -130,9 +130,13 @@ const Board = () => { }); // .then((res) => { break; case 'DELETE': - removeBoard(payload).then(() => { - search(); - setOpen(false); + removeBoard(payload).then((res) => { + if (res?.success) { + search(); + setOpen(false); + } else { + alert.show(`${res?.data.message}`); + } }); // .then((res) => { break; default: diff --git a/src/views/biz/judge/JudgeDataModifyForm.jsx b/src/views/biz/judge/JudgeDataModifyForm.jsx index 2383c74..4300996 100644 --- a/src/views/biz/judge/JudgeDataModifyForm.jsx +++ b/src/views/biz/judge/JudgeDataModifyForm.jsx @@ -319,15 +319,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav /> - setScJuso(e?.target?.value)} - InputProps={{ readOnly: true }} - /> + setScJuso(e?.target?.value)} /> setScBunji(e?.target?.value)} /> diff --git a/src/views/biz/judge/JudgeDataNewForm.jsx b/src/views/biz/judge/JudgeDataNewForm.jsx index 7cd8660..405a27f 100644 --- a/src/views/biz/judge/JudgeDataNewForm.jsx +++ b/src/views/biz/judge/JudgeDataNewForm.jsx @@ -210,7 +210,7 @@ const JudgeDataNewForm = ({ scDatagb, contDocs, ingbs, handleModalSave }) => { fullWidth required label="우편번호" - value={zipcode1} + value={zipcode1 ?? ''} onChange={(e) => setZipcode1(e?.target?.value)} onClick={openPostCode} InputProps={{