Bug 53 resolved. 14/514/1
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Wed, 5 Oct 2016 21:56:58 +0000 (14:56 -0700)
committerKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Wed, 5 Oct 2016 21:56:58 +0000 (14:56 -0700)
Signed-off-by: KIRAN KASHALKAR <kiran.kashalkar@riftio.com>
skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js

index 589af02..b9fded5 100644 (file)
@@ -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;
                 }