diff --git a/web/src/app/history/task-query/task-query.component.ts b/web/src/app/history/task-query/task-query.component.ts
index 6d6170e6f..63b680af5 100644
--- a/web/src/app/history/task-query/task-query.component.ts
+++ b/web/src/app/history/task-query/task-query.component.ts
@@ -170,7 +170,7 @@ export class TaskQueryComponent implements OnInit {
}
private performRequest() {
- setTimeout(() => this.requestInProgressService.setRequestInProgress(true), 1)
+ this.requestInProgressService.setRequestInProgress(true);
this.calculateQueryPages();
this.taskQuerySubscription = this.taskQueryService.queryTask(
this.orderBy.sortBy.replace(/([A-Z])|([0-9])/g, (g) => `-${g[0].toLowerCase()}`),
@@ -195,7 +195,7 @@ export class TaskQueryComponent implements OnInit {
this.taskQueryForm.get('custom3') ? this.taskQueryForm.get('custom3').value : undefined,
this.taskQueryForm.get('custom4') ? this.taskQueryForm.get('custom4').value : undefined,
false).subscribe(taskQueryResource => {
- this.requestInProgressService.setRequestInProgress(false)
+ this.requestInProgressService.setRequestInProgress(false);
if (!taskQueryResource._embedded) {
this.taskQuery = null;
this.taskQueryResource = null;
diff --git a/web/src/app/services/requestInProgress/request-in-progress.service.ts b/web/src/app/services/requestInProgress/request-in-progress.service.ts
index 62f9c7c43..678eefdaf 100644
--- a/web/src/app/services/requestInProgress/request-in-progress.service.ts
+++ b/web/src/app/services/requestInProgress/request-in-progress.service.ts
@@ -9,7 +9,7 @@ export class RequestInProgressService {
constructor() { }
setRequestInProgress(value: boolean) {
- this.requestInProgressTriggered.next(value);
+ setTimeout(() => this.requestInProgressTriggered.next(value), 0);
}
getRequestInProgress(): Observable {