mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
[Table] #670 Name column only prepended if multiple objects
This commit is contained in:
parent
ffa497f22f
commit
f04c3692c1
@ -166,10 +166,10 @@ define(
|
|||||||
configuration;
|
configuration;
|
||||||
|
|
||||||
if (handle) {
|
if (handle) {
|
||||||
handle.promiseTelemetryObjects().then(function () {
|
handle.promiseTelemetryObjects().then(function (objects) {
|
||||||
table.buildColumns(handle.getMetadata());
|
table.buildColumns(handle.getMetadata());
|
||||||
|
|
||||||
if (table.columns.length > 0){
|
if (objects && objects.length > 1){
|
||||||
table.addColumn(new NameColumn(), 0);
|
table.addColumn(new NameColumn(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user