From 925905bc43985810726f5118d88b6099fd8c46ee Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Tue, 2 Aug 2016 11:17:40 +0200 Subject: [PATCH] Table-mode: fixes processes view if internet is present. - Also adds tooltip for id label column (container/process name) --- client/app/scripts/charts/nodes-grid.js | 2 +- .../app/scripts/components/node-details/node-details-table.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/app/scripts/charts/nodes-grid.js b/client/app/scripts/charts/nodes-grid.js index 94f652033..4f2d46369 100644 --- a/client/app/scripts/charts/nodes-grid.js +++ b/client/app/scripts/charts/nodes-grid.js @@ -61,7 +61,7 @@ function renderIdCell(props) { const showSubLabel = Boolean(props.pseudo); return ( -
+
{props.label} {showSubLabel && diff --git a/client/app/scripts/components/node-details/node-details-table.js b/client/app/scripts/components/node-details/node-details-table.js index b8b450399..bc403712a 100644 --- a/client/app/scripts/components/node-details/node-details-table.js +++ b/client/app/scripts/components/node-details/node-details-table.js @@ -75,7 +75,7 @@ function getValueForSortBy(sortBy) { function getMetaDataSorters(nodes) { // returns an array of sorters that will take a node return _.get(nodes, [0, 'metadata'], []).map((field, index) => node => { - const nodeMetadataField = node.metadata[index]; + const nodeMetadataField = node.metadata && node.metadata[index]; if (nodeMetadataField) { if (isNumberField(nodeMetadataField)) { return parseFloat(nodeMetadataField.value);