Merge branch 'RED-10262' into 'master'

RED-10262: fixed cancel resize.

See merge request redactmanager/red-ui!649
This commit is contained in:
Nicoleta Panaghiu 2024-10-28 16:27:58 +01:00
commit 395c9b0cd3
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) {