From 3c031741fb8fe83fdaccd7352e53baab561f6e4e Mon Sep 17 00:00:00 2001 From: yixian Date: Tue, 14 Jul 2020 01:58:20 +1000 Subject: [PATCH] fix ui bugs --- src/main/ui/static/analysis/settle_tasks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ui/static/analysis/settle_tasks.js b/src/main/ui/static/analysis/settle_tasks.js index 93c96d030..3c0ee169a 100644 --- a/src/main/ui/static/analysis/settle_tasks.js +++ b/src/main/ui/static/analysis/settle_tasks.js @@ -42,7 +42,7 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) { } } let finished = $scope.progress.finished_sequence; - if ($scope.currentTasks) { + if ($scope.currentTasks && finished) { for (let finId of finished) { $scope.currentTasks.filter(task => task.task_id === finId).forEach(v => { v.idle = false;