mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 04:23:04 +00:00
Fixed issue with a subscribiption when submission component is destroyed
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user