diff options
author | Sébastien Determe <sebastien.determe@intl.att.com> | 2019-04-05 13:31:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-05 13:31:34 +0000 |
commit | 3ae0ad2234422c6660ae4fbdcf37e8e78dbf7e61 (patch) | |
tree | 3bacf0d71923d6675124f46ec5657c8306cdee78 /src/main/resources | |
parent | d10114aeb050d7a3e1e782e48ad446dfeebf388f (diff) | |
parent | ed8e2a71029088ecc7f29b484ef1b7a71d536604 (diff) |
Merge "Update Csar handler"
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/META-INF/resources/designer/scripts/propertyController.js | 6 |
1 files changed, 4 insertions, 2 deletions
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 2b32f4d26..507d6bc80 100644 --- 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) { - 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; @@ -82,7 +84,7 @@ function getMsUI(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; |