Fixed issue with a subscribiption when submission component is destroyed

This commit is contained in:
Giuseppe Digilio
2018-11-21 14:55:50 +01:00
parent 9eb00b9e62
commit 8efa2cfc4b
3 changed files with 2 additions and 4 deletions

View File

@@ -47,9 +47,9 @@ export abstract class SectionModelComponent implements OnDestroy, OnInit, Sectio
}
ngOnDestroy(): void {
this.onSectionDestroy();
if (hasValue(this.sectionStatusSub)) {
this.sectionStatusSub.unsubscribe();
}
this.onSectionDestroy();
}
}