mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 21:00:45 +00:00
make sure rows exist in table data before iterating over them
This commit is contained in:
@ -110,12 +110,15 @@ function DataTable({
|
||||
}
|
||||
|
||||
let showExpandColumn = false;
|
||||
for (let i = 0; i < table.rows.length; i++)
|
||||
if(table.rows)
|
||||
{
|
||||
if(table.rows[i].subRows)
|
||||
for (let i = 0; i < table.rows.length; i++)
|
||||
{
|
||||
showExpandColumn = true;
|
||||
break;
|
||||
if (table.rows[i].subRows)
|
||||
{
|
||||
showExpandColumn = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user