64503: Fetch harvester endpoint using halService + small unsubscribe fix

This commit is contained in:
Kristof De Langhe
2019-09-03 11:19:23 +02:00
parent ff2083941a
commit 7432297dce
3 changed files with 7 additions and 5 deletions

View File

@@ -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();
}
}
}