From 185ad7e59b9cc26eef93c9703711293c27c3f591 Mon Sep 17 00:00:00 2001 From: Lucano Vera Date: Thu, 19 Dec 2024 18:39:42 -0300 Subject: [PATCH] LA-225 Datamap-report-page-breaks-if-there-are-no-results (#5627) --- .../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)); }