diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index 0732edf..c2bf6ff 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -575,9 +575,10 @@ class CCPExecutionHistory extends HTMLElement { target : "span[name=runtime]", apply : (e,d)=>{ const rt = d.runtime ? d.runtime : "" - e.textContent = d.runtime + (d.replicas && d.replicas !== "1" ? ' x ' + d.replicas : '') - const t = d.infrastructuretype.match(/docker/i) ? "docker" : null - const t2 = !t && d.infrastructuretype.match(/lxd/i) ? "lxd" : t + const infratype = d.infrastructuretype ? d.infrastructuretype : "" + e.textContent = rt + (d.replicas && d.replicas !== "1" ? ' x ' + d.replicas : '') + const t = infratype.match(/docker/i) ? "docker" : null + const t2 = !t && infratype.match(/lxd/i) ? "lxd" : t e.classList.add(t2) } },