diff options
author | 2018-03-27 16:24:02 +0000 | |
---|---|---|
committer | 2018-03-27 16:24:02 +0000 | |
commit | 1ab6386b4dd920b39a994b1288673d2e7ee3957b (patch) | |
tree | 0ebfc32ca6a0c4c8636ba926319d84b0faa18e51 /src/main/resources | |
parent | c78683360f82f25704af830a1653691d190cacae (diff) | |
parent | 356769fae6ed1b5821c9004a3b556b9f15931986 (diff) |
Merge "Fix UI DCAE Deploy"
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js b/src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js index 3a5faf59..04ba83a7 100644 --- a/src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js +++ b/src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js @@ -30,11 +30,11 @@ app.controller('DeploymentCtrl', elementMap["global"] = []; } - var index = elementMap["global"].findIndex(function (e) { return (typeof e == "object" && !(e instanceof Array)) && "deployParameters" in e; }); - if (index == -1) { - elementMap["global"].push({"deployParameters": parameters}); - } else { - elementMap["global"][index]["deployParameters"] = parameters; + var index = elementMap["global"].findIndex(function (e) { return (typeof e == "object" && !(e instanceof Array)) && "deployParameters" == e["name"]; }); + if (index == -1) { + elementMap["global"].push({"name": "deployParameters", "value": parameters}); + } else { + elementMap["global"][index]["value"] = parameters; } } |