Code Review
/
clamp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "E2E Automation"
[clamp.git]
/
src
/
main
/
resources
/
META-INF
/
resources
/
designer
/
scripts
/
propertyController.js
diff --git
a/src/main/resources/META-INF/resources/designer/scripts/propertyController.js
b/src/main/resources/META-INF/resources/designer/scripts/propertyController.js
index
6c54a66
..
75c64f3
100644
(file)
--- a/
src/main/resources/META-INF/resources/designer/scripts/propertyController.js
+++ b/
src/main/resources/META-INF/resources/designer/scripts/propertyController.js
@@
-72,7
+72,9
@@
function getMsProperty(type) {
var msProperties = cl_props["microServicePolicies"];
for (p in msProperties) {
if (msProperties[p]["name"] == type) {
var msProperties = cl_props["microServicePolicies"];
for (p in msProperties) {
if (msProperties[p]["name"] == type) {
- return JSON.parse(JSON.stringify(msProperties[p]["properties"]));
+ if (msProperties[p]["properties"] !== null && msProperties[p]["properties"] !== undefined) {
+ return JSON.parse(JSON.stringify(msProperties[p]["properties"]));
+ }
}
}
return null;
}
}
return null;
@@
-82,7
+84,7
@@
function getMsUI(type) {
var msProperties = cl_props["microServicePolicies"];
for (p in msProperties) {
if (msProperties[p]["name"] == type) {
var msProperties = cl_props["microServicePolicies"];
for (p in msProperties) {
if (msProperties[p]["name"] == type) {
- return JSON.parse(JSON.stringify(msProperties[p]["jsonRepresentation"]));
+
return JSON.parse(JSON.stringify(msProperties[p]["jsonRepresentation"]));
}
}
return null;
}
}
return null;