79220: Fix edit group navigation bug

This commit is contained in:
Bruno Roemers
2021-05-04 11:46:04 +02:00
parent eb3cd85680
commit 042afd9bb8
2 changed files with 8 additions and 1 deletions

View File

@@ -405,7 +405,7 @@ export class GroupFormComponent implements OnInit, OnDestroy {
*/
@HostListener('window:beforeunload')
ngOnDestroy(): void {
this.onCancel();
this.groupDataService.cancelEditGroup();
this.subs.filter((sub) => hasValue(sub)).forEach((sub) => sub.unsubscribe());
}