Calendar: avoid TypeError: Cannot read properties of null (reading 'length') when there is no data (due to filter changing)

This commit is contained in:
nathan 2023-05-17 13:40:42 -06:00
parent a0d044a4c1
commit e4bdbe256a

View File

@ -1952,7 +1952,7 @@ export class et2_calendar_planner extends et2_calendar_view implements et2_IDeta
}
}
}
if(waitForGroups.length == 0)
if(!data || data.length == 0)
{
return;
}