From 475d3380fc8f01c0518dba02e1663423326a71a2 Mon Sep 17 00:00:00 2001 From: "sumathi.thirumani" Date: Tue, 16 Jan 2024 17:23:56 -0800 Subject: [PATCH 1/2] Fix for 4951. --- web/src/components/FOI/Home/DocumentSelector.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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))); From 025fe1355da5293507eca439a3bede86ad688726 Mon Sep 17 00:00:00 2001 From: "sumathi.thirumani" Date: Tue, 16 Jan 2024 17:25:38 -0800 Subject: [PATCH 2/2] Fix for 4664 --- web/src/components/FOI/Home/Redlining.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {