Update models/actions/task_list.go

Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
Jason Song 2023-01-04 16:11:17 +08:00 committed by GitHub
parent 2917057b00
commit 9b00ded1fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,7 @@ func (tasks TaskList) LoadJobs(ctx context.Context) error {
}
}
// TODO: Replace with "ActionJobList(maps.Values(jobs))" once available
var jobsList ActionJobList = make([]*ActionRunJob, 0, len(jobs))
for _, j := range jobs {
jobsList = append(jobsList, j)