From 81a32f6d58af22b716ae7246a9a8cdee2e779074 Mon Sep 17 00:00:00 2001 From: Rosario Allegro Date: Tue, 28 Jan 2025 15:34:17 +0100 Subject: [PATCH] RED-10758: Fix remove and recategorize request in applicationType DocuMine --- .../file-preview/services/annotation-actions.service.ts | 8 +++++++- libs/common-ui | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts index 635acbf3d..ee8a7e77d 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts @@ -137,7 +137,11 @@ export class AnnotationActionsService { let recategorizeBody: List | IBulkRecategorizationRequest; - if (result.option === RedactOrHintOptions.ONLY_HERE || result.option === RectangleRedactOptions.ONLY_THIS_PAGE) { + if ( + result.option === RedactOrHintOptions.ONLY_HERE || + result.option === RectangleRedactOptions.ONLY_THIS_PAGE || + this.#isDocumine + ) { recategorizeBody = annotations.map(annotation => { const body: IRecategorizationRequest = { annotationId: annotation.id, @@ -167,6 +171,7 @@ export class AnnotationActionsService { }; } + result.pageNumbers = result.pageNumbers || []; await this.#processObsAndEmit( this._manualRedactionService.recategorizeRedactions( recategorizeBody, @@ -606,6 +611,7 @@ export class AnnotationActionsService { redactions: AnnotationWrapper[], dialogResult: RemoveRedactionResult, ): List { + dialogResult.pageNumbers = dialogResult.pageNumbers || []; if (dialogResult.bulkLocal || !!dialogResult.pageNumbers.length) { return dialogResult.positions.map((position, index) => ({ value: redactions[index].value, diff --git a/libs/common-ui b/libs/common-ui index fc8be33dc..7f13fa62d 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit fc8be33dc6d33642ae207b6ae4c17a6ec254d11a +Subproject commit 7f13fa62d3d2b346c609bc4978cff75f37f1ee6b