handle case when available_runtimes is null
This commit is contained in:
parent
b337fb2075
commit
e2ee020ec5
|
@ -166,6 +166,7 @@ class CCPInfrastructureList extends HTMLElement{
|
|||
|
||||
showDeployableRuntimes(infra){
|
||||
const alreadydeployed = infra.runtimes.map(r=>r["descriptor-id"])
|
||||
infra.available_runtimes = infra.available_runtimes ? infra.available_runtimes : []
|
||||
const options = infra.available_runtimes.filter(r=>{
|
||||
return infra.type === r.type && alreadydeployed.indexOf(r.id) === -1
|
||||
}).map(r=>{
|
||||
|
|
Loading…
Reference in New Issue