mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 10:46:42 +00:00
#769 - Removed empty code block and addressed some excessive guard code
This commit is contained in:
parent
6322964dec
commit
aac5a6d250
@ -140,8 +140,7 @@ define(
|
||||
* @private
|
||||
*/
|
||||
TableConfiguration.prototype.defaultColumnConfiguration = function () {
|
||||
return ((this.domainObject.getModel().configuration || {}).table ||
|
||||
{}).columns;
|
||||
return ((this.domainObject.getModel().configuration || {}).table || {}).columns || {};
|
||||
};
|
||||
|
||||
/**
|
||||
@ -176,7 +175,7 @@ define(
|
||||
TableConfiguration.prototype.buildColumnConfiguration = function () {
|
||||
var configuration = {},
|
||||
//Use existing persisted config, or default it
|
||||
defaultConfig = this.defaultColumnConfiguration() || {};
|
||||
defaultConfig = this.defaultColumnConfiguration();
|
||||
|
||||
/**
|
||||
* For each column header, define a configuration value
|
||||
@ -185,7 +184,7 @@ define(
|
||||
*/
|
||||
this.getHeaders().forEach(function (columnTitle) {
|
||||
configuration[columnTitle] =
|
||||
typeof (defaultConfig || {})[columnTitle] === 'undefined' ? true :
|
||||
typeof defaultConfig[columnTitle] === 'undefined' ? true :
|
||||
defaultConfig[columnTitle];
|
||||
});
|
||||
|
||||
|
@ -421,9 +421,7 @@ define(
|
||||
currentColumnLength,
|
||||
largestColumn,
|
||||
largestColumnLength;
|
||||
if (!row[key]){
|
||||
//do nothing, no value for this column;
|
||||
} else {
|
||||
if (row[key]){
|
||||
currentColumn = (row[key]).text;
|
||||
currentColumnLength =
|
||||
(currentColumn && currentColumn.length) ?
|
||||
|
Loading…
Reference in New Issue
Block a user