From: KIRAN KASHALKAR Date: Fri, 5 May 2017 03:36:09 +0000 (-0400) Subject: Merge branch 'v2.0' X-Git-Tag: v3.0.0rc~22 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=commitdiff_plain;h=ae7bbd19c580eae550ac91d549e35c1e34289503;hp=4ac4733357decb8be9bc9b1db90b255cfaffc1b7 Merge branch 'v2.0' --- diff --git a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js index c923ede7f..ad2bf3dc9 100644 --- a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js +++ b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js @@ -538,7 +538,7 @@ export default function EditDescriptorModelProperties(props) { selectedOptionValue = utils.resolvePath(container.model, ['uiState.choice', pathToChoice, 'selected'].join('.')); } else { property.properties.map(function(p) { - let pname = p.properties[0].name; + let pname = p.properties[0] && p.properties[0].name; if(container.model.hasOwnProperty(pname)) { utils.assignPathValue(container.model, ['uiState.choice', pathToChoice, 'selected'].join('.'), [p.name, pname].join('.')); } @@ -747,7 +747,7 @@ export default function EditDescriptorModelProperties(props) { value = utils.resolvePath(container.model, ['uiState.choice'].concat(path, 'selected').join('.')); if(!value) { property.properties.map(function(p) { - let pname = p.properties[0].name; + let pname = p.properties[0] && p.properties[0].name; if(container.model.hasOwnProperty(pname)) { value = container.model[pname]; } diff --git a/skyquake/plugins/launchpad/src/launchpad_card/launchpadCardCloudAccount.jsx b/skyquake/plugins/launchpad/src/launchpad_card/launchpadCardCloudAccount.jsx index 1856dda78..39397ff4c 100644 --- a/skyquake/plugins/launchpad/src/launchpad_card/launchpadCardCloudAccount.jsx +++ b/skyquake/plugins/launchpad/src/launchpad_card/launchpadCardCloudAccount.jsx @@ -36,7 +36,7 @@ export default class LaunchpadCardCloudAccount extends React.Component { (
  • NSR: {this.props.nsr['cloud-account']}

  • ) ) } - this.props.nsr['vnfrs'].map(function(v,i) { + this.props.nsr['vnfrs'] && this.props.nsr['vnfrs'].map(function(v,i) { if(v.hasOwnProperty('cloud-account')) { status.push( (
  • VNFR {v['short-name']}: {v['cloud-account']}

  • )