Skip to content

Commit

Permalink
Merge pull request #1159 from bcgov/main-NK-FOIMOD-3466-hotfix-2
Browse files Browse the repository at this point in the history
fix 3 for watermark issue when no page flag
  • Loading branch information
nkan-aot2 authored Sep 19, 2024
2 parents fbf1203 + 52a7cff commit 4c0523f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/FOI/Home/Redlining.js
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ const Redlining = React.forwardRef(
// Hence being able to leverage those properties
let originalPage = pageMappedDocs['stitchedPageLookup'][pageNumber]
let doc = pageFlags.find(d => d.documentid === originalPage.docid);
let pageFlag = doc.pageflag?.find(f => f.page === originalPage.page);
let pageFlag = doc?.pageflag?.find(f => f.page === originalPage.page);
if (pageFlag?.flagid === pageFlagTypes["Duplicate"]) {
ctx.fillStyle = "#ff0000";
ctx.font = "20pt Arial";
Expand Down

0 comments on commit 4c0523f

Please sign in to comment.