From 92b16334285469115fd9ca44bcde06694dae422e Mon Sep 17 00:00:00 2001 From: Lucano Vera Date: Thu, 19 Dec 2024 18:36:52 -0300 Subject: [PATCH] LA-225 Fix datamap page breaking --- .../src/features/datamap/reporting/DatamapReportTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }