- let properties = [];
- _.forEach(volume, function(v, k) {
- properties.push(
- <div style={{display: 'flex', margin: '0.5rem 0'}} key={k + vi}>
- <div style={{margin: '0 1rem',
- fontWeight: 'bold', textTransform: 'uppercase'}}>{k}</div>
- <div>{v}</div>
+ 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'}}>{(v.constructor.name == 'String' || v.constructor.name == 'Number') ? v : buildProperties(v)}</div>