Skip to content

Commit

Permalink
Merge pull request #719 from bcgov/dev-rook-ST-4664-4951
Browse files Browse the repository at this point in the history
Dev rook st 4664 4951
  • Loading branch information
sumathi-thirumani authored Jan 17, 2024
2 parents 5c5c762 + 025fe13 commit 15e34ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions web/src/components/FOI/Home/DocumentSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,14 @@ const DocumentSelector = React.forwardRef(({
return PAGE_FLAGS[flag.flagid as keyof typeof PAGE_FLAGS];
}

const codeById: Record<number, string> = {}
if (consultMinistries && consultMinistries?.length > 0) {
const codeById: Record<number, string> = consultMinistries?.reduce((acc: any, item: any) => {
acc[item.programareaid] = item.iaocode;
return acc;
}, {});
const codeById: Record<number, String> = {};
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)));
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/FOI/Home/Redlining.js
Original file line number Diff line number Diff line change
Expand Up @@ -1696,15 +1696,15 @@ const Redlining = React.forwardRef(
}
} else {
let pageFlagSelections = pageSelections;
if (
/*if (
(defaultSections.length > 0 && defaultSections[0] === 25) ||
selectedSections[0] === 25
) {
pageFlagSelections = pageFlagSelections.map((flag) => {
flag.flagid = pageFlagTypes["In Progress"];
return flag;
});
}
}*/
// add section annotation
let sectionAnnotations = [];
for (const node of astr.getElementsByTagName("annots")[0].children) {
Expand Down

0 comments on commit 15e34ea

Please sign in to comment.