make sure rows exist in table data before iterating over them

This commit is contained in:
Tim Chamberlain
2023-11-02 14:40:29 -05:00
parent 25fa2e82ea
commit 02fe351084

View File

@ -110,6 +110,8 @@ function DataTable({
}
let showExpandColumn = false;
if(table.rows)
{
for (let i = 0; i < table.rows.length; i++)
{
if (table.rows[i].subRows)
@ -118,6 +120,7 @@ function DataTable({
break;
}
}
}
const columnsToMemo = [...table.columns];
if(showExpandColumn)