diff --git a/web/src/components/FOI/Home/DocumentSelector.tsx b/web/src/components/FOI/Home/DocumentSelector.tsx index 6a189ec6b..9e939852d 100644 --- a/web/src/components/FOI/Home/DocumentSelector.tsx +++ b/web/src/components/FOI/Home/DocumentSelector.tsx @@ -462,13 +462,14 @@ const DocumentSelector = React.forwardRef(({ return PAGE_FLAGS[flag.flagid as keyof typeof PAGE_FLAGS]; } - const codeById: Record = {} - if (consultMinistries && consultMinistries?.length > 0) { - const codeById: Record = consultMinistries?.reduce((acc: any, item: any) => { - acc[item.programareaid] = item.iaocode; - return acc; - }, {}); + const codeById: Record = {}; + if (consultMinistries && consultMinistries?.length > 0) { + consultMinistries?.map((item: any) => { + codeById[item.programareaid] = item.iaocode; + }); } + + const openConsulteeList = (e: any) => { const consultFlagged = files.filter((file: any) => file.pageFlag?.find((obj: any) => (obj.flagid == 4))); diff --git a/web/src/components/FOI/Home/Redlining.js b/web/src/components/FOI/Home/Redlining.js index 735467afa..3b09d647c 100644 --- a/web/src/components/FOI/Home/Redlining.js +++ b/web/src/components/FOI/Home/Redlining.js @@ -1696,7 +1696,7 @@ const Redlining = React.forwardRef( } } else { let pageFlagSelections = pageSelections; - if ( + /*if ( (defaultSections.length > 0 && defaultSections[0] === 25) || selectedSections[0] === 25 ) { @@ -1704,7 +1704,7 @@ const Redlining = React.forwardRef( flag.flagid = pageFlagTypes["In Progress"]; return flag; }); - } + }*/ // add section annotation let sectionAnnotations = []; for (const node of astr.getElementsByTagName("annots")[0].children) {