feat: use row.robotMetaId

This commit is contained in:
amhsirak
2025-01-10 12:28:35 +05:30
parent 4f3e3ef66e
commit 38a9821bb2

View File

@@ -50,7 +50,7 @@ export const CollapsibleRow = ({ row, handleDelete, isOpen, currentLog, abortRun
? 'API'
: 'Unknown';
const { robotMetaId, runId } = useParams();
const { runId } = useParams();
const logEndRef = useRef<HTMLDivElement | null>(null);
@@ -69,7 +69,7 @@ export const CollapsibleRow = ({ row, handleDelete, isOpen, currentLog, abortRun
setOpen(newOpen);
if (newOpen) {
// Navigate to default tab (data) when expanding
navigate(`/runs/${robotMetaId}/run/${row.runId}`);
navigate(`/runs/${row.robotMetaId}/run/${row.runId}`);
}
scrollToLogBottom();
};