aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js10
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 3a5faf592..04ba83a78 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;
}
}