diff --git a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js index f3a7645..48bd223 100644 --- a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js +++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js @@ -140,7 +140,7 @@ function CodeViewer(props) { `onclick="const flag = this.checked; document.querySelectorAll('.'+this.id.replace('chk', '')).forEach((input)=>{input.checked = flag})"` + // "onClick={chkboxControll} "+ ">"+item.full_content; - if(item.cont_level===1 && item.cont_order !== 1){ + if(index!==0 && item.cont_level===1 && item.cont_order !== 1){ item.full_content = "
"+item.full_content; } }