mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 11:33:04 +00:00
Fixed issue with a subscribe when section components are destroyed
This commit is contained in:
@@ -35,7 +35,7 @@ import { difference } from '../../../shared/object.util';
|
||||
templateUrl: './section-form.component.html',
|
||||
})
|
||||
@renderSectionFor(SectionsType.SubmissionForm)
|
||||
export class FormSectionComponent extends SectionModelComponent implements OnDestroy {
|
||||
export class FormSectionComponent extends SectionModelComponent {
|
||||
|
||||
public formId;
|
||||
public formModel: DynamicFormControlModel[];
|
||||
@@ -90,7 +90,7 @@ export class FormSectionComponent extends SectionModelComponent implements OnDes
|
||||
});
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
onSectionDestroy() {
|
||||
this.subs
|
||||
.filter((subscription) => hasValue(subscription))
|
||||
.forEach((subscription) => subscription.unsubscribe());
|
||||
|
Reference in New Issue
Block a user