Skip to content
Snippets Groups Projects
Commit fca02ee7 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13593 TIME 1 unsubscribe catchAction

parent cb5846ed
No related branches found
No related tags found
No related merge requests found
......@@ -255,9 +255,10 @@ export class SignatureBookComponent implements OnInit {
if (idToGo >= 0) {
$j("#send").removeAttr("disabled");
$j("#send").css("opacity", "1");
this.zone.run(() => this.changeLocation(idToGo, "action"));
this.changeLocation(idToGo, "action");
} else {
this.zone.run(() => this.backToBasket());
this.backToBasket();
}
}
}
......@@ -585,4 +586,8 @@ export class SignatureBookComponent implements OnInit {
this.appVisaWorkflow.saveVisaWorkflow();
}
ngOnDestroy() {
// unsubscribe to ensure no memory leaks
this.subscription.unsubscribe();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment