From 6d6ef21d69488a3274893c6d6e9a6c4f177a6d02 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 10 Jan 2025 12:36:26 +0530 Subject: [PATCH] feat: navigate to robot runs on expand close --- src/components/run/RunsTable.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/run/RunsTable.tsx b/src/components/run/RunsTable.tsx index 886f1058..b652aef0 100644 --- a/src/components/run/RunsTable.tsx +++ b/src/components/run/RunsTable.tsx @@ -85,7 +85,9 @@ export const RunsTable: React.FC = ({ 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`); } };