diff --git a/server/controllers/wazuh-reporting.js b/server/controllers/wazuh-reporting.js index fda9ef826..1cbecb661 100644 --- a/server/controllers/wazuh-reporting.js +++ b/server/controllers/wazuh-reporting.js @@ -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' });