From f04c3692c11fa33bf04f6b0c0b835f0963421ad2 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 26 Feb 2016 11:22:16 -0800 Subject: [PATCH] [Table] #670 Name column only prepended if multiple objects --- platform/features/table/src/controllers/TableController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/features/table/src/controllers/TableController.js b/platform/features/table/src/controllers/TableController.js index 3b723836ae..577b79b1ca 100644 --- a/platform/features/table/src/controllers/TableController.js +++ b/platform/features/table/src/controllers/TableController.js @@ -166,10 +166,10 @@ define( configuration; if (handle) { - handle.promiseTelemetryObjects().then(function () { + handle.promiseTelemetryObjects().then(function (objects) { table.buildColumns(handle.getMetadata()); - if (table.columns.length > 0){ + if (objects && objects.length > 1){ table.addColumn(new NameColumn(), 0); }