From a93fa295ed16e30b1ee36e797f2a2516630ebf26 Mon Sep 17 00:00:00 2001 From: thkim Date: Tue, 27 Feb 2024 17:34:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B4=80=EB=A6=AC=EC=9E=90=20-=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=EC=84=A4=EC=A0=95=20-=20=EC=9C=84=EC=9B=90?= =?UTF-8?q?=ED=9A=8C=20=EC=BD=94=EB=93=9C=EA=B4=80=EB=A6=AC=EC=97=90?= =?UTF-8?q?=EC=84=9C=20'=EC=A4=91=EC=95=99=EA=B1=B4=EC=84=A4=EA=B8=B0?= =?UTF-8?q?=EC=88=A0=EC=8B=AC=EC=9D=98'=20=EC=B6=94=EA=B0=80=20=EC=8B=9C,?= =?UTF-8?q?=20=EC=83=81=EC=9C=84=EC=BD=94=EB=93=9C=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=ED=95=B4=20=EB=8B=AC=EB=9D=BC=EB=8A=94=20=EB=AC=B8=EA=B5=AC=20?= =?UTF-8?q?=EB=82=98=EC=98=A4=EB=8A=94=20=EB=B2=84=EA=B7=B8=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 --- .../components/list/ListCreateUpdateDelete.jsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/egovframe-template-simple-react-contribution/src/components/list/ListCreateUpdateDelete.jsx b/egovframe-template-simple-react-contribution/src/components/list/ListCreateUpdateDelete.jsx index 826b282..eaeb9ca 100644 --- a/egovframe-template-simple-react-contribution/src/components/list/ListCreateUpdateDelete.jsx +++ b/egovframe-template-simple-react-contribution/src/components/list/ListCreateUpdateDelete.jsx @@ -61,12 +61,16 @@ const Item = styled(Paper)(({ theme }) => ({ function ListCreateUpdateDelete(props) { const handleClickOpen = () => { - if( props.itemIndex[props.depthSelectedArrayIndex-1] === undefined ) { - alert('상위 코드를 선택해주세요.'); - props.setIsPopupOpen(false); - return false; - } - props.setCreateCondition({...props.createCondition, paramCodeLevel : props.paramCodeLevel, paramOrgId : props.itemIndex[props.depthSelectedArrayIndex-1]}); + if( props.depthSelectedArrayIndex === 0 ) { + props.setCreateCondition({...props.createCondition, paramCodeLevel : props.paramCodeLevel, paramOrgId : "00"}); + } else { + if( props.itemIndex[props.depthSelectedArrayIndex-1] === undefined ) { + alert('상위 코드를 선택해주세요.'); + props.setIsPopupOpen(false); + return false; + } + props.setCreateCondition({...props.createCondition, paramCodeLevel : props.paramCodeLevel, paramOrgId : props.itemIndex[props.depthSelectedArrayIndex-1]}); + } props.setIsPopupOpen(true); };