diff --git a/clients/admin-ui/src/features/datamap/reporting/DatamapReportTable.tsx b/clients/admin-ui/src/features/datamap/reporting/DatamapReportTable.tsx index b70ce1a7e9..0b0164ce12 100644 --- a/clients/admin-ui/src/features/datamap/reporting/DatamapReportTable.tsx +++ b/clients/admin-ui/src/features/datamap/reporting/DatamapReportTable.tsx @@ -224,7 +224,7 @@ export const DatamapReportTable = () => { ); useEffect(() => { - if (datamapReport) { + if (datamapReport?.items?.length) { const columnIDs = Object.keys(datamapReport.items[0]); setColumnOrder(getColumnOrder(groupBy, columnIDs)); }