mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
64503: Fetch harvester endpoint using halService + small unsubscribe fix
This commit is contained in:
@@ -421,6 +421,8 @@ export class CollectionSourceComponent extends AbstractTrackableComponent implem
|
||||
* Make sure open subscriptions are closed
|
||||
*/
|
||||
ngOnDestroy(): void {
|
||||
this.updateSub.unsubscribe();
|
||||
if (this.updateSub) {
|
||||
this.updateSub.unsubscribe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user