오류 수정

cks
강석 최 2023-12-14 10:11:26 +09:00
parent a4039c9380
commit a37acf90e7
1 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,6 @@ function CodeViewer(props) {
setDocInfo([])
setDocCode(docCode);
getCodeInfo(docCode);
setErrorSelector([])
getCodeDetailInfo(docCode);
}
@ -117,7 +116,7 @@ function CodeViewer(props) {
docTitle = docInfo[docInfo.length-1].doc_nm
}else{
docInfo.forEach(function (item, index){
if(new Date(item.estb_ymd) <= new Date(ymd)){
if(new Date(item.rvsn_ymd) <= new Date(ymd)){
activeIndex = index;
docTitle = item.doc_nm
}
@ -141,7 +140,7 @@ function CodeViewer(props) {
className={buttonClass}
value={item.doc_er==='E'?'제':'개'}
onClick={docInfoSelectorChange}
data-ymd={item.estb_ymd} data-doccode={item.kcsc_cd}/>
data-ymd={item.rvsn_ymd} data-doccode={item.kcsc_cd}/>
<br/>
<p className={pClass}>{item.doc_yr}</p>
</Col>)
@ -156,6 +155,7 @@ function CodeViewer(props) {
})
const getCodeDetailInfo = useCallback((docCode, ymd) => {
setErrorSelector([]);
console.groupCollapsed("EgovMain.getCodeDetailInfo()");
EgovNet.requestFetch(
'/standardCode/getCodeDetailInfo.do',