From 9a65eed85cfdc064621d8c8050de539a3fea4c8e Mon Sep 17 00:00:00 2001 From: nkan-aot2 <156717133+nkan-aot2@users.noreply.github.com> Date: Mon, 21 Oct 2024 09:20:57 -0700 Subject: [PATCH] fix in progress flag changing to partial disclosure on adding non redaction annotation --- web/src/components/FOI/Home/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/components/FOI/Home/utils.js b/web/src/components/FOI/Home/utils.js index ef736a94f..5f7e7dda0 100644 --- a/web/src/components/FOI/Home/utils.js +++ b/web/src/components/FOI/Home/utils.js @@ -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 @@ -791,4 +794,4 @@ export const findNROrDuplicatePageFlag = (pageFlags, docObj, pageFlagTypes) => { return pageFlag; } } -} \ No newline at end of file +}