Skip to content

Commit

Permalink
Merge pull request #1284 from bcgov/dev-rook-NK-FOIMOD-3160-fix
Browse files Browse the repository at this point in the history
fix docreviewer crashing on deleting open info redaction
  • Loading branch information
nkan-aot2 authored Jan 28, 2025
2 parents 5abc096 + c8dc4b0 commit d2a44ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/components/FOI/Home/Redlining.js
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ const Redlining = React.forwardRef(
(data) => {
if(data.status == true){
const updatedPageFlags = updatePageFlagOnPage(data.updatedpageflag, pageFlags)
if(updatedPageFlags?.length > 0)
if(updatedPageFlags?.length > 0 && currentLayer.name !== 'Open Info')
syncPageFlagsOnAction(updatedPageFlags);
}
// fetchPageFlag(
Expand Down Expand Up @@ -1175,7 +1175,7 @@ const Redlining = React.forwardRef(
(data) => {
if(data.status == true && data.updatedpageflag){
const updatedPageFlags = updatePageFlagOnPage(data.updatedpageflag,pageFlags)
if(updatedPageFlags?.length > 0)
if(updatedPageFlags?.length > 0 && currentLayer.name !== 'Open Info')
syncPageFlagsOnAction(updatedPageFlags);
}
},
Expand Down Expand Up @@ -1816,7 +1816,7 @@ const Redlining = React.forwardRef(
setPageSelections([]);
if(data.status == true){
const updatedPageFlags = updatePageFlagOnPage(data.updatedpageflag,pageFlags)
if(updatedPageFlags?.length > 0)
if(updatedPageFlags?.length > 0 && currentLayer.name !== 'Open Info')
syncPageFlagsOnAction(updatedPageFlags);
}
// fetchPageFlag(
Expand Down Expand Up @@ -1977,7 +1977,7 @@ const Redlining = React.forwardRef(
setPageSelections([]);
if(data.status == true){
const updatedPageFlags = updatePageFlagOnPage(data.updatedpageflag,pageFlags)
if(updatedPageFlags?.length > 0)
if(updatedPageFlags?.length > 0 && currentLayer.name !== 'Open Info')
syncPageFlagsOnAction(updatedPageFlags);
}
// fetchPageFlag(
Expand Down

0 comments on commit d2a44ad

Please sign in to comment.