Commit a809c68b authored by Jaden's avatar Jaden Committed by Flavio TARSETTI

[reports][js] properly assign exp label type in tables

See !280#note_40947
parent 0c71f03a
......@@ -93,10 +93,7 @@ angular.module('reportApp')
return scope.fieldTypeCache[field];
let type;
if(field === scope.fields[0]){
type = 'string';
scope.fieldTypeCache[field] = type;
}
let isExpNameCol = field === scope.fields[0] && field === 'Experiment';
let hasFieldObj = Object.values(scope.tableables)
.find(o => o[field]);
......@@ -107,7 +104,7 @@ angular.module('reportApp')
type = 'integer';
} else if(Number.isFinite(fVal)){
type = 'float';
} else if(typeof fVal === 'string'){
} else if(typeof fVal === 'string' || isExpNameCol){
type = 'string';
} else {
type = undefined;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment