From 3e965bd99bac438b5c83cd18b748eb348e46ecfb Mon Sep 17 00:00:00 2001 From: liuzx Date: Wed, 24 Aug 2022 11:54:02 +0800 Subject: [PATCH] fix-2643 --- routers/api/v1/repo/cloudbrain_dashboard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/cloudbrain_dashboard.go b/routers/api/v1/repo/cloudbrain_dashboard.go index 52ee3ed2c..55d7400b7 100755 --- a/routers/api/v1/repo/cloudbrain_dashboard.go +++ b/routers/api/v1/repo/cloudbrain_dashboard.go @@ -764,7 +764,7 @@ func GetCloudbrainsDetailData(ctx *context.Context) { taskDetail.WaitTime = repo.GetCloudbrainWaitTime(ciTasks[i].Cloudbrain) - if ciTasks[i].Cloudbrain.DeletedAt != nilTime { + if ciTasks[i].Cloudbrain.DeletedAt != nilTime || ciTasks[i].Repo == nil { taskDetail.IsDelete = true } else { taskDetail.IsDelete = false