RIFT-15032: launchpad UI - RIFT.ware DEB install - Viewport - icons for nsr (this... 94/694/1
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Mon, 21 Nov 2016 23:16:09 +0000 (18:16 -0500)
committerKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Mon, 21 Nov 2016 23:16:09 +0000 (18:16 -0500)
Signed-off-by: KIRAN KASHALKAR <kiran.kashalkar@riftio.com>
skyquake/plugins/launchpad/src/recordViewer/recordNavigator.jsx

index edb4dbb..92bb81f 100644 (file)
@@ -45,9 +45,9 @@ export default class RecordNavigator extends React.Component{
 
   getDescriptorIdFromRecord = (record) => {
       if (record.type && record.type == 'nsr') {
 
   getDescriptorIdFromRecord = (record) => {
       if (record.type && record.type == 'nsr') {
-          return nsr.nsd && nsr.nsd.id;
+          return record.nsd && record.nsd.id;
       } else if (record.type && record.type == 'vnfr') {
       } else if (record.type && record.type == 'vnfr') {
-          return vnfr.vnfd && vnfr.vnfd.id;
+          return record.vnfd && record.vnfd.id;
       }
 
       return null;
       }
 
       return null;