feat: navigate to robot runs on expand close

This commit is contained in:
amhsirak
2025-01-10 12:36:26 +05:30
parent e0320bcac1
commit 6d6ef21d69

View File

@@ -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`);
}
};