RIFT-16848:RIFT-333: Test Multi-disk (Volumes) with OpenStack (2 Image volumes, 1...
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Tue, 30 May 2017 22:58:20 +0000 (18:58 -0400)
committerKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Tue, 30 May 2017 22:58:20 +0000 (18:58 -0400)
Signed-off-by: KIRAN KASHALKAR <kiran.kashalkar@riftio.com>
skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx

index f9a400b..0d58f73 100644 (file)
@@ -143,10 +143,12 @@ export default class RecordCard extends React.Component {
                 function buildProperties(obj) {
                   let p = [];
                     _forEach(obj, function(v, k) {
+                      if (!v) {
+                        return null;
+                      }
                     p.push(
                       <div style={{margin: '0.5rem 0.5rem'}} key={k + '-' + vi}>
-                        <div style={{margin: '0 0.5rem',
-    fontWeight: 'bold', textTransform: 'uppercase', color: '#5b5b5b'}}>{k}</div>
+                        <div style={{margin: '0 0.5rem', fontWeight: 'bold', textTransform: 'uppercase', color: '#5b5b5b'}}>{k}</div>
                         <div style={{margin: '0 0.5rem'}}>{(v.constructor.name == 'String' || v.constructor.name == 'Number') ? v : buildProperties(v)}</div>
                       </div>
                     )