mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
119176: clear viewContainerRef on destroy
This commit is contained in:
@@ -174,6 +174,7 @@ export class ItemEditBitstreamBundleComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
|
this.viewContainerRef.clear();
|
||||||
this.subscriptions.forEach(sub => sub?.unsubscribe());
|
this.subscriptions.forEach(sub => sub?.unsubscribe());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user