Skip to content

Commit adee458

Browse files
committed
hotfix: add loader initially for studies
1 parent b498db7 commit adee458

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/pages/admin/admin-dashboard/studies/view-studies/view-studies.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,13 @@ export class ViewStudiesComponent implements OnInit, OnDestroy {
9191
}
9292

9393
ngOnInit(): void {
94-
const studiesSub = this.studyService.getOrUpdateStudies().subscribe((a) => {});
94+
this.loaderService.showLoader();
95+
const studiesSub = this.studyService
96+
.getOrUpdateStudies()
97+
.subscribe((a) => {})
98+
.add(() => {
99+
this.loaderService.hideLoader();
100+
});
95101
this.subscriptions.push(studiesSub);
96102
}
97103

0 commit comments

Comments
 (0)