Skip to content

Commit e689f5d

Browse files
committed
wip progress service
1 parent a6d5135 commit e689f5d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/SIL.XForge.Scripture/ClientApp/src/app/shared/progress-service/progress.service.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DestroyRef, Injectable, OnDestroy } from '@angular/core';
22
import { TextInfo } from 'realtime-server/lib/esm/scriptureforge/models/text-info';
3-
import { asyncScheduler, merge, startWith, Subscription, tap, throttleTime } from 'rxjs';
3+
import { asyncScheduler, merge, startWith, Subscription, throttleTime } from 'rxjs';
44
import { ActivatedProjectService } from 'xforge-common/activated-project.service';
55
import { DataLoadingComponent } from 'xforge-common/data-loading-component';
66
import { DocSubscription, FETCH_WITHOUT_SUBSCRIBE } from 'xforge-common/models/realtime-doc';
@@ -58,15 +58,10 @@ export class ProgressService extends DataLoadingComponent implements OnDestroy {
5858
.pipe(
5959
startWith(this.activatedProject.projectDoc),
6060
filterNullish(),
61-
tap(async project => {
62-
this.initialize(project.id);
63-
}),
6461
throttleTime(1000, asyncScheduler, { leading: false, trailing: true }),
6562
quietTakeUntilDestroyed(this.destroyRef)
6663
)
67-
.subscribe(project => {
68-
this.initialize(project.id);
69-
});
64+
.subscribe(project => this.initialize(project.id));
7065
}
7166

7267
get texts(): TextProgress[] {

0 commit comments

Comments
 (0)