X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FrecordViewer%2FrecordCard.jsx;h=0d58f7308b765a4068d9b06889d342b0443716ea;hp=ea3eb2f2a2616aa6fe5e510aa3a7761e18f1fc89;hb=cfbe2bba8c107d8d8f32601fe0dcd128bcbfa077;hpb=223366ccc6537984552d07f827750e14e83219b8 diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx index ea3eb2f2a..0d58f7308 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx @@ -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(
-
{k}
+
{k}
{(v.constructor.name == 'String' || v.constructor.name == 'Number') ? v : buildProperties(v)}
) @@ -369,11 +371,11 @@ export default class RecordCard extends React.Component { consoleUrlsTabTitle = 'VDU Console Links'; tabList.push( - {consoleUrlsTabTitle} + {consoleUrlsTabTitle} ); tabPanels.push( - +
{consoleUrlsComponent}