Skip to content

Commit

Permalink
feat: navigate to robot runs on expand close
Browse files Browse the repository at this point in the history
  • Loading branch information
amhsirak committed Jan 10, 2025
1 parent e0320bc commit 6d6ef21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/run/RunsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export const RunsTable: React.FC<RunsTableProps> = ({

const handleAccordionChange = (robotMetaId: string, isExpanded: boolean) => {
if (isExpanded) {
navigate(`/runs/${robotMetaId}`); // Update the route when an accordion is expanded
navigate(`/runs/${robotMetaId}`);
} else {
navigate(`/runs`);
}
};

Expand Down

0 comments on commit 6d6ef21

Please sign in to comment.