From: KIRAN KASHALKAR Date: Thu, 4 May 2017 18:48:37 +0000 (-0400) Subject: Issue with viewing details about items in catalog X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=3675ba75a1448e3aa468abb95f177666f8edfa48;p=osm%2FUI.git Issue with viewing details about items in catalog Signed-off-by: KIRAN KASHALKAR --- diff --git a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js index c4b817eb4..ed29b265a 100644 --- a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js +++ b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js @@ -512,7 +512,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.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); } });