From 880d6996fe6d72d3dc155ce0bfd5ce9c4bd99e58 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Fri, 8 Apr 2022 12:00:36 +0300 Subject: [PATCH] RED-3747: fix check multiple pages condition --- .../manual-annotation-dialog.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts index b3db1abc3..1297b0d58 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts @@ -95,7 +95,10 @@ export class ManualAnnotationDialogComponent extends BaseDialogComponent impleme save() { this._enhanceManualRedaction(this.data.manualRedactionEntryWrapper.manualRedactionEntry); try { - const annotations = this.isRectangle ? this.#getRectangles() : [this.data.manualRedactionEntryWrapper]; + const annotations = + this.isRectangle && !!this.form.get('multiplePages').value + ? this.#getRectangles() + : [this.data.manualRedactionEntryWrapper]; this._dialogRef.close(annotations); } catch (e) { this._toaster.error(_('manual-annotation.dialog.error'));