mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #4707 from DSpace/backport-4644-to-dspace-7_x
[Port dspace-7_x] fix: call parent ngOnDestroy in dynamic form control container
This commit is contained in:
@@ -486,6 +486,7 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
|
|||||||
* Unsubscribe from all subscriptions
|
* Unsubscribe from all subscriptions
|
||||||
*/
|
*/
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
|
super.ngOnDestroy();
|
||||||
this.subs
|
this.subs
|
||||||
.filter((sub) => hasValue(sub))
|
.filter((sub) => hasValue(sub))
|
||||||
.forEach((sub) => sub.unsubscribe());
|
.forEach((sub) => sub.unsubscribe());
|
||||||
|
Reference in New Issue
Block a user