From d58f65f890e6fb214c9eb03b99fcd432de39b2ef Mon Sep 17 00:00:00 2001 From: KIRAN KASHALKAR Date: Wed, 5 Oct 2016 14:56:58 -0700 Subject: [PATCH] Bug 53 resolved. Signed-off-by: KIRAN KASHALKAR --- .../launchpad/src/recordViewer/recordViewStore.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js b/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js index 589af02ca..b9fded547 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js +++ b/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js @@ -192,12 +192,23 @@ class RecordViewStore { let parameterList = []; const filterAndAddByValue = (paramObj) => { + let nameValuePair = null; + if (paramObj['value'] != undefined) { - parameterList.push({ + nameValuePair = { name: paramObj.name, value: paramObj.value - }); + }; + } else if (paramObj['default-value'] != undefined) { + nameValuePair = { + name: paramObj.name, + value: paramObj['default-value'] + } } + if (nameValuePair) { + parameterList.push(nameValuePair); + } + return paramObj['value'] != undefined; } -- 2.25.1