From 6644714bb7c2108e4afe66a34b8de28b5726d65a Mon Sep 17 00:00:00 2001 From: Andreas Awouters Date: Wed, 16 Oct 2024 15:56:35 +0200 Subject: [PATCH] 119176: clear viewContainerRef on destroy --- .../item-edit-bitstream-bundle.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/item-page/edit-item-page/item-bitstreams/item-edit-bitstream-bundle/item-edit-bitstream-bundle.component.ts b/src/app/item-page/edit-item-page/item-bitstreams/item-edit-bitstream-bundle/item-edit-bitstream-bundle.component.ts index 2c7d8ca60f4..a751a89e1b6 100644 --- a/src/app/item-page/edit-item-page/item-bitstreams/item-edit-bitstream-bundle/item-edit-bitstream-bundle.component.ts +++ b/src/app/item-page/edit-item-page/item-bitstreams/item-edit-bitstream-bundle/item-edit-bitstream-bundle.component.ts @@ -174,6 +174,7 @@ export class ItemEditBitstreamBundleComponent implements OnInit, OnDestroy { } ngOnDestroy() { + this.viewContainerRef.clear(); this.subscriptions.forEach(sub => sub?.unsubscribe()); }