Issue with viewing details about items in catalog 61/1761/1
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Thu, 4 May 2017 18:48:37 +0000 (14:48 -0400)
committerKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Thu, 4 May 2017 18:50:58 +0000 (14:50 -0400)
Signed-off-by: KIRAN KASHALKAR <kiran.kashalkar@riftio.com>
skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js

index 0e1746d..c923ede 100644 (file)
@@ -531,7 +531,7 @@ export default function EditDescriptorModelProperties(props) {
                        if(fieldProperties) {
                                //Check each case statement in model and see if it is present in container model.
                                cases.map(function(c){
                        if(fieldProperties) {
                                //Check each case statement in model and see if it is present in container model.
                                cases.map(function(c){
-                                       if(fieldProperties.hasOwnProperty(c.optionValue.split('.')[1])) {
+                                       if(c.optionValue && fieldProperties.hasOwnProperty(c.optionValue.split('.')[1])) {
                                                utils.assignPathValue(container.model, ['uiState.choice', pathToChoice, 'selected'].join('.'), c.optionValue);
                                        }
                                });
                                                utils.assignPathValue(container.model, ['uiState.choice', pathToChoice, 'selected'].join('.'), c.optionValue);
                                        }
                                });