RED-10758: Fix remove and recategorize request in applicationType DocuMine
This commit is contained in:
parent
82552b1748
commit
81a32f6d58
@ -137,7 +137,11 @@ export class AnnotationActionsService {
|
||||
|
||||
let recategorizeBody: List<IRecategorizationRequest> | 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<IRemoveRedactionRequest | IBulkLocalRemoveRequest> {
|
||||
dialogResult.pageNumbers = dialogResult.pageNumbers || [];
|
||||
if (dialogResult.bulkLocal || !!dialogResult.pageNumbers.length) {
|
||||
return dialogResult.positions.map((position, index) => ({
|
||||
value: redactions[index].value,
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit fc8be33dc6d33642ae207b6ae4c17a6ec254d11a
|
||||
Subproject commit 7f13fa62d3d2b346c609bc4978cff75f37f1ee6b
|
||||
Loading…
x
Reference in New Issue
Block a user