From 7e3c2dba31c1a75e36bcf3ec3839bc5b9fb3cfc8 Mon Sep 17 00:00:00 2001 From: Jooho Yoon Date: Wed, 23 Feb 2022 13:29:12 +0900 Subject: [PATCH] =?UTF-8?q?FIX:=20=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=20=EA=B4=80=EB=A6=AC=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 등록시에만 커뮤니티명 validation Check 하도록 수정 --- src/egov/admin/usage/EgovAdminUsageEdit.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/egov/admin/usage/EgovAdminUsageEdit.jsx b/src/egov/admin/usage/EgovAdminUsageEdit.jsx index 6714c6f..6aac554 100644 --- a/src/egov/admin/usage/EgovAdminUsageEdit.jsx +++ b/src/egov/admin/usage/EgovAdminUsageEdit.jsx @@ -134,9 +134,11 @@ function EgovAdminUsageEdit(props) { alert("게시판명은 필수 값입니다."); return false; } - if (formData.get('trgetType') === null || formData.get('trgetType') === "") { - alert("커뮤니티/동호회명은 필수 값입니다."); - return false; + if (modeInfo.mode === CODE.MODE_CREATE) { + if (formData.get('trgetType') === null || formData.get('trgetType') === "") { + alert("커뮤니티/동호회명은 필수 값입니다."); + return false; + } } return true; }