mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
Add table.columns as parameter
This commit is contained in:
parent
764a5e1d1e
commit
162b0f7f28
@ -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' });
|
||||
|
Loading…
Reference in New Issue
Block a user