From 95b40322010f57b623a2f1c0299914fff6565a31 Mon Sep 17 00:00:00 2001 From: Shijun Sun <30999793+AllForNothing@users.noreply.github.com> Date: Wed, 15 Nov 2023 17:50:06 +0800 Subject: [PATCH] Correct loop condition for replication tasks (#19570) Signed-off-by: AllForNothing --- src/portal/PACKAGE.md | 2 +- .../replication-tasks/replication-tasks.component.ts | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/portal/PACKAGE.md b/src/portal/PACKAGE.md index e8e0a6279..69471aa40 100644 --- a/src/portal/PACKAGE.md +++ b/src/portal/PACKAGE.md @@ -1,7 +1,7 @@ ```text { "name": "harbor", - "version": "2.9.0", + "version": "2.10.0", "description": "Harbor UI with Clarity", "angular-cli": {}, "scripts": { diff --git a/src/portal/src/app/base/left-side-nav/replication/replication/replication-tasks/replication-tasks.component.ts b/src/portal/src/app/base/left-side-nav/replication/replication/replication-tasks/replication-tasks.component.ts index 1162ab98c..c3a39b302 100644 --- a/src/portal/src/app/base/left-side-nav/replication/replication/replication-tasks/replication-tasks.component.ts +++ b/src/portal/src/app/base/left-side-nav/replication/replication/replication-tasks/replication-tasks.component.ts @@ -252,13 +252,11 @@ export class ReplicationTasksComponent implements OnInit, OnDestroy { count > 0 || this.execution?.status === executionStatus ) { - if (!this.tasksTimeout) { - this.tasksTimeout = setTimeout(() => { - this.clrLoadTasks(false, { - page: {}, - }); - }, REFRESH_TIME_DIFFERENCE); - } + this.tasksTimeout = setTimeout(() => { + this.clrLoadTasks(false, { + page: {}, + }); + }, REFRESH_TIME_DIFFERENCE); } }, error => {