feat: group runs by robot meta id instead of robot name

This commit is contained in:
amhsirak
2024-11-18 05:51:56 +05:30
parent 4fefe71d29
commit f6e08aa766

View File

@@ -105,12 +105,12 @@ export const RunsTable = (
fetchRuns(); fetchRuns();
}; };
// Group runs by recording name // Group runs by robot meta id
const groupedRows = rows.reduce((acc, row) => { const groupedRows = rows.reduce((acc, row) => {
if (!acc[row.name]) { if (!acc[row.robotMetaId]) {
acc[row.name] = []; acc[row.robotMetaId] = [];
} }
acc[row.name].push(row); acc[row.robotMetaId].push(row);
return acc; return acc;
}, {} as Record<string, Data[]>); }, {} as Record<string, Data[]>);