From e2ee020ec5e57801f798b5de743d531c99031247 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 23 Nov 2022 17:12:10 +0100 Subject: [PATCH] handle case when available_runtimes is null --- ccp/js/infrastructurelistcontroller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ccp/js/infrastructurelistcontroller.js b/ccp/js/infrastructurelistcontroller.js index 8736e87..aaf12f0 100644 --- a/ccp/js/infrastructurelistcontroller.js +++ b/ccp/js/infrastructurelistcontroller.js @@ -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=>{