북마크 모달 연도 선택 오류 수정
parent
5efe77b066
commit
07cd513bab
|
|
@ -71,7 +71,7 @@ const BookmarkModal = ({docCode, docPart, ymd}) => {
|
|||
let activeIndex = 0;
|
||||
let docTitle = "";
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue