feat: group runs by robot meta id instead of robot name
This commit is contained in:
@@ -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[]>);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user