CM-355, fix changed after check error caused by loading service.

This commit is contained in:
George 2023-07-24 12:53:00 +03:00
parent d40f839365
commit 7ff7864767

View File

@ -21,8 +21,10 @@ export class LoadingService {
clearTimeout(this.#stopTimeout);
this.#stopTimeout = undefined;
}
this.#loading.set(config);
this.#loadingStarted = Date.now();
setTimeout(() => {
this.#loading.set(config);
this.#loadingStarted = Date.now();
});
}
update(config: ILoadingConfig): void {
@ -49,7 +51,7 @@ export class LoadingService {
}
#stop(): void {
this.#loading.set(undefined);
setTimeout(() => this.#loading.set(undefined));
}
#stopAfter(clearAfter: number): void {