From: KIRAN KASHALKAR Date: Wed, 25 Jan 2017 20:59:16 +0000 (-0500) Subject: Bug 171 fixed X-Git-Tag: v1.1.0~11 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F1020%2F1;p=osm%2FUI.git Bug 171 fixed Signed-off-by: KIRAN KASHALKAR --- diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js b/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js index b9f74990a..a7770a7fa 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js +++ b/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js @@ -136,7 +136,7 @@ class RecordViewStore { let vnfrIndex = data.vnfrIndex; let configPrimitiveIndex = data.configPrimitiveIndex; let payload = {}; - let isValid = false; + let isValid = true; let configPrimitive = vnfrs[vnfrIndex]['vnf-configuration']['service-primitive'][configPrimitiveIndex]; payload['name'] = ''; @@ -144,7 +144,7 @@ class RecordViewStore { payload['vnf-list'] = []; payload['triggered-by'] = 'vnf-primitive'; let parameters = []; - configPrimitive['parameter'].map((parameter) => { + configPrimitive['parameter'] && configPrimitive['parameter'].map((parameter) => { if(!isValid) { isValid = validateParameter(parameter); } @@ -157,8 +157,11 @@ class RecordViewStore { let vnfPrimitive = []; vnfPrimitive[0] = { name: configPrimitive['name'], - index: configPrimitiveIndex, - parameter: parameters + index: configPrimitiveIndex + }; + + if (parameters.length > 0) { + vnfPrimitive[0].parameter = parameters; } payload['vnf-list'].push({