From: KIRAN KASHALKAR Date: Wed, 5 Oct 2016 21:56:58 +0000 (-0700) Subject: Bug 53 resolved. X-Git-Tag: v1.0.1~10^2~19 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F514%2F1;p=osm%2FUI.git Bug 53 resolved. Signed-off-by: KIRAN KASHALKAR --- 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; }