Add table.columns as parameter

This commit is contained in:
Jesús Ángel González 2018-06-29 12:13:58 +02:00 committed by Javier Castro
parent 764a5e1d1e
commit 162b0f7f28

View File

@ -84,7 +84,7 @@ export default class WazuhReportingCtrl {
renderTables(tables) {
for (const table of tables) {
const rowsparsed = rawParser(table.rawResponse);
const rowsparsed = rawParser(table.rawResponse, table.columns);
if (Array.isArray(rowsparsed) && rowsparsed.length) {
const rows = rowsparsed.length > 100 ? rowsparsed.slice(0,99) : rowsparsed;
this.dd.content.push({ text: table.title, style: 'subtitlenobold', pageBreak: 'before' });