feat: navigate to robot runs on expand close
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user