RED-10262: fixed cancel resize.

This commit is contained in:
Nicoleta Panaghiu 2024-10-28 17:25:09 +02:00
parent 0259bcee06
commit 7e44bdf1e2
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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) {