mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Fix array max size
This commit is contained in:
parent
3f2f61716e
commit
849b509438
@ -84,8 +84,9 @@ export default class WazuhReportingCtrl {
|
||||
|
||||
renderTables(tables) {
|
||||
for (const table of tables) {
|
||||
const rows = rawParser(table.rawResponse);
|
||||
if (Array.isArray(rows) && rows.length) {
|
||||
const rowsparsed = rawParser(table.rawResponse);
|
||||
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' });
|
||||
this.dd.content.push('\n');
|
||||
const full_body = [];
|
||||
|
Loading…
Reference in New Issue
Block a user