Skip to content

Commit

Permalink
Merge pull request #1192 from bcgov/dev
Browse files Browse the repository at this point in the history
in progress flag fix
  • Loading branch information
nkan-aot2 authored Oct 21, 2024
2 parents 8ca9d65 + ad2a412 commit e7bc3f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/components/FOI/Home/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ const constructPageFlagsForAddOrEdit = (
pageFlags
) => {
let pagesToUpdate = {};
if (annotationsInfo.section === undefined) {
return getValidObject(pagesToUpdate); // non redaction annotations do not need page flags automatically applied
}
const foundBlank = ["", " "].includes(annotationsInfo.section);
const foundNR = annotationsInfo.section == "NR";
// section with a valid number found
Expand Down Expand Up @@ -791,4 +794,4 @@ export const findNROrDuplicatePageFlag = (pageFlags, docObj, pageFlagTypes) => {
return pageFlag;
}
}
}
}

0 comments on commit e7bc3f2

Please sign in to comment.