From f6e08aa7664d8606375b42d8bf13af487cd8d0c1 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 18 Nov 2024 05:51:56 +0530 Subject: [PATCH] feat: group runs by robot meta id instead of robot name --- src/components/molecules/RunsTable.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/molecules/RunsTable.tsx b/src/components/molecules/RunsTable.tsx index 3fde41a3..f6d628df 100644 --- a/src/components/molecules/RunsTable.tsx +++ b/src/components/molecules/RunsTable.tsx @@ -105,12 +105,12 @@ export const RunsTable = ( fetchRuns(); }; - // Group runs by recording name + // Group runs by robot meta id const groupedRows = rows.reduce((acc, row) => { - if (!acc[row.name]) { - acc[row.name] = []; + if (!acc[row.robotMetaId]) { + acc[row.robotMetaId] = []; } - acc[row.name].push(row); + acc[row.robotMetaId].push(row); return acc; }, {} as Record);