Skip to content

Commit 83aa17d

Browse files
committed
Merge branch 'master' into pk910/validator-lifecycle-test-v3
2 parents a5229a9 + f2cb5bd commit 83aa17d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/coordinator/web/handlers/test_run.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,16 @@ func (fh *FrontendHandler) getTestRunPageData(runID int64) (*TestRunPage, error)
197197
taskData.GraphLevels[indentation-1] = 3
198198

199199
for i := idx - 1; i >= 0; i-- {
200-
if len(pageData.Tasks[i].GraphLevels) < indentation {
201-
continue
200+
if pageData.Tasks[i].Index == taskData.ParentIndex {
201+
break
202202
}
203203

204-
if pageData.Tasks[i].ParentIndex == taskData.ParentIndex {
205-
pageData.Tasks[i].GraphLevels[indentation-1] = 2
204+
if len(pageData.Tasks[i].GraphLevels) < indentation {
206205
break
207206
}
208207

209-
if pageData.Tasks[i].Index == taskData.ParentIndex {
208+
if pageData.Tasks[i].ParentIndex == taskData.ParentIndex {
209+
pageData.Tasks[i].GraphLevels[indentation-1] = 2
210210
break
211211
}
212212

0 commit comments

Comments
 (0)