diff --git a/src/app/dataset-detail/components/dataset-detail/dataset-detail.component.ts b/src/app/dataset-detail/components/dataset-detail/dataset-detail.component.ts index a37b0c61e3f173e3e22b1fe1a617ba7450f02b12..d817cf7e096d1deb7644d745ace2dd84631051b8 100644 --- a/src/app/dataset-detail/components/dataset-detail/dataset-detail.component.ts +++ b/src/app/dataset-detail/components/dataset-detail/dataset-detail.component.ts @@ -61,8 +61,6 @@ export class DatasetDetailComponent implements OnInit, OnDestroy { this.isLoading = true; this.initDatasetInfo(); }); - - this._datasetDetailService.retrieveDatasetData().subscribe(); } ngOnDestroy() { @@ -249,6 +247,8 @@ export class DatasetDetailComponent implements OnInit, OnDestroy { // Emit event to indicate to child component that the dataset has changed this._datasetDetailService.datasetChanged(); + // move subscription from ngOnInit + this._datasetDetailService.retrieveDatasetData().subscribe(); } setPosition() {