From: Laurence Maultsby Date: Fri, 24 Feb 2017 14:01:30 +0000 (-0500) Subject: Fixed bug with config parameter map on nsd when no request or source is present X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0b017e8dfc192899166798a511bbf768ea4f732f;p=osm%2FUI.git Fixed bug with config parameter map on nsd when no request or source is present Signed-off-by: Laurence Maultsby --- diff --git a/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js b/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js index 4c7bbdde9..8feee342e 100644 --- a/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js +++ b/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js @@ -341,8 +341,8 @@ function constructRequestSourceData(containers) { function constructVnfdMap(vnfdData, vnfd) { let data = { - requests: vnfd['config-parameter']['config-parameter-request'], - sources: vnfd['config-parameter']['config-parameter-source'] + requests: vnfd['config-parameter'] && vnfd['config-parameter']['config-parameter-request'], + sources: vnfd['config-parameter'] && vnfd['config-parameter']['config-parameter-source'] }; vnfdData.vnfdRefs[vnfd.id] = _.merge(vnfdData.vnfdRefs[vnfd.id], data); }