fixed possibly empty resources array

This commit is contained in:
dcore94 2024-11-26 18:21:11 +01:00
parent e2d543c8fd
commit 982778621c
1 changed files with 2 additions and 1 deletions

View File

@ -965,7 +965,8 @@ class CCPExecutionHistory extends HTMLElement {
{
target : "li",
"in" : (e,d)=>{
return d.resources.map(l=>{
const resources = d.resources ? d.resurces : []
return resources.map(l=>{
return { href : this.#serviceurl + "/executions/" + d.id + "/" + l.path, path : l.path}
})
},