Issue with VNFRs being absent in NSR
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Thu, 4 May 2017 20:24:56 +0000 (16:24 -0400)
committerKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Thu, 4 May 2017 20:24:56 +0000 (16:24 -0400)
Signed-off-by: KIRAN KASHALKAR <kiran.kashalkar@riftio.com>
skyquake/plugins/launchpad/src/launchpad_card/launchpadCardCloudAccount.jsx

index 1856dda..39397ff 100644 (file)
@@ -36,7 +36,7 @@ export default class LaunchpadCardCloudAccount extends React.Component {
         (<li key="nsr"><h3>NSR: {this.props.nsr['cloud-account']}</h3></li>)
       )
     }
-    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(
           (<li key={i}><h3>VNFR {v['short-name']}: {v['cloud-account']}</h3></li>)