Fix missing header in reporting

This commit is contained in:
Jesús González 2019-05-02 14:59:17 +02:00
parent e0364522f7
commit ce81c010b9

View File

@ -61,14 +61,14 @@ export class VisHandlers {
.map(item => {
const columns = [];
for (const table of item.dataLoader.visData.tables) {
columns.push(...table.columns.map(t => t.title));
columns.push(...table.columns.map(t => t.name));
}
return !!(((item || {}).vis || {}).searchSource || {}).rawResponse
? {
rawResponse: item.vis.searchSource.rawResponse,
title: item.vis.title || 'Table',
columns: columns
columns
}
: false;
});