diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts index a5b174c13..1d8c4308e 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/resize-redaction-dialog/resize-redaction-dialog.component.ts @@ -77,7 +77,7 @@ export class ResizeRedactionDialogComponent extends IqserDialogComponent< save() { const formValue = this.form.getRawValue(); - const updateDictionary = formValue.option.value === ResizeOptions.IN_DOSSIER; + const updateDictionary = formValue.option?.value === ResizeOptions.IN_DOSSIER; super.close({ comment: formValue.comment, 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 e0ca1ef91..020d61af5 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 @@ -329,9 +329,9 @@ export class AnnotationActionsService { async cancelResize(annotationWrapper: AnnotationWrapper) { this._annotationManager.resizingAnnotationId = undefined; this._annotationManager.annotationHasBeenResized = false; + this._annotationManager.deselect(); this._annotationManager.delete(annotationWrapper); await this._annotationDrawService.draw([annotationWrapper], this._skippedService.hideSkipped(), this._state.dossierTemplateId); - this._annotationManager.deselect(); } #generateRectangle(annotationWrapper: AnnotationWrapper) {